Alkaloids are nitrogen-containing organic compounds produced by plants and animals that have pharmacological effects. The document discusses the biosynthesis of several classes of alkaloids including those derived from ornithine, lysine, phenylalanine, tyrosine, tryptophan, and lysergic acid. Key intermediates include ornithine, tropine, dopamine, and tryptamine, which contribute carbon and nitrogen atoms to various alkaloid structures like piperidine rings in lysine derivatives or indole rings in tryptophan derivatives. Morphine, codeine, and other opium alkaloids are derived from tyrosine, while quinine is derived from tryptophan and terpenoid