The earliest pesticide was
Margosa
Margosa or neem oil is derived from the seed extract of the neem tree. It is used as an insecticide.
The dried neem leaves repel the pests from stored grains.
Azadirachtin, a family of terpenoids extracted from the neem trees, is utilised as an insecticide.