Alkaloids represent a structurally diverse group of nitrogen‐containing secondary metabolites. Many of them have pronounced pharmacological activities and are therefore important for medicine and biotechnology. Most alkaloids derive from an amino acid as a precursor, such as ornithine, arginine, lysine, phenylalanine, tyrosine or tryptophan. The biosynthetic pathways of the main groups of alkaloids have already been elucidated at the enzyme and gene levels. In a few cases, it was already possible to produce alkaloids (e.g. benzylisoquinoline alkaloids) in transgenic microorganisms which were transformed with the respective genes of alkaloid biosynthesis. Details are given for nicotine and tropane alkaloids, pyrrolizidine alkaloids, benzylisoquinoline alkaloids, monoterpene indole alkaloids, ergot alkaloids, acridone alkaloids, purine alkaloids and taxol. Betalains (the red–violet betacyanins and the yellow betaxanthins) are structurally related to alkaloids (‘chromoalkaloids’) and are typical for plants in the order Caryophyllales. Their biosynthesis and function are discussed in this chapter.