Plant alkaloids are organic compounds that largely consist of carbon, hydrogen, nitrogen, and oxygen. They are often alkaline and can be found in various parts of plants, such as leaves, seeds, bark, and roots. Alkaloids are known for their diverse biological activity, which ranges from therapeutic effects to toxicity. Their role in plants is primarily as a defense mechanism against herbivores and pathogens.