Our knowledge of the biosynthesis of medicinal compounds from plants remains limited. A new study has deciphered the complete metabolic pathway leading to the biosynthesis of the psychedelic mescaline in the cactus peyote, suggesting the development of biotechnological strategies for a sustainable supply of this important plant drug.