The resin protects the plant from insects and pathogens. Resins confound a wide range of herbivores, insects, and pathogens. The volatile phenolic compounds may attract benefactors, that is, parasitoids or predators of the herbivores which attack the plant.