Plants can be toxic due to the presence of chemical compounds that interfere with biological processes. These compounds, which include alkaloids, glycosides, and tannins, serve various functions such as defense against herbivores and pathogens. The toxicity of a plant often depends on the concentration and combination of these compounds.