Loline alkaloids protect plants from attack by insects and have other interesting features that have yet to be studied in detail. Chemists have developed a method for the effective synthesis of these compounds, which will facilitate further investigations in biology and medicine.