Plants produce a variety of phytochemicals that serve as defense mechanisms against herbivores and pathogens. Some of these chemicals, such as alkaloids and glycosides, can be toxic to humans. For example, the alkaloid atropine found in deadly nightshade can cause severe symptoms, including hallucinations and cardiac issues.