Cocaine is one of the most commonly used (and abused) plant-derived drugs in the world, but we have almost no modern information on how plants produce this complex alkaloid. Researchers have just discovered a key reaction in cocaine formation in the coca plant from South America, and identified the responsible enzyme. This enzyme was shown to belong to the aldo-keto-reductase protein family revealing some exciting new insights into the evolution of cocaine biosynthesis.