Insecticide - Wikipedia
Many organic compounds are produced by plants for the purpose of defending the host plant from predation. A trivial case is tree rosin, which is a natural insecticide.Specifically, the production of oleoresin by conifer species is a component of the defense response against insect attack and fungal pathogen infection. Many fragrances, e.g. oil of wintergreen, are in fact antifeedants.