The chemicals sting, boil, or taste yucky. Insects use them to fend off predators.
ChemMatters is a publication of the American Chemical Society.