Plants produce phytochemicals to protect themselves from herbivores and pathogens. These compounds, which include alkaloids, glycosides, terpenoids, and phenolics, can be beneficial in small amounts but toxic in larger doses. For instance, alkaloids like atropine found in deadly nightshade (Atropa belladonna) can cause severe physiological effects, including hallucinations and even death.