Ajmaline is an antiarrhythmic monoterpenoid indole alkaloid produced by the root of Rauwolfia serpentina. Here, the authors complete the ajmaline biosynthetic pathway by identifying two reductases and two esterases, and achieve the de novo ajmaline biosynthesis by engineering Baker’s yeast.