Alkaloids are basic nitrogenous compounds derived from plants and other organisms, first identified in 1819, with a wide range of pharmacological effects including analgesic, antimalarial, and psychotropic activities. They serve various functions in plants such as protecting against pests and assisting in growth, while also having significant uses in medicine and other applications for humans. However, they can exhibit toxicity at higher doses, affecting multiple organ systems and modulating neurotransmitter activity.