The first total synthesis of transalpinecine, a pyrrolizidine alkaloid extracted from Heliotropium transalpinum is reported. The concise synthetic route developed towards these unusual iminosugar‐like natural compounds relies on an intramolecular Morita–Baylis–Hillman reaction. The four diastereoisomers of transalpinecine, as well as the two diastereoisomers of the parent epoxide subulacine, were prepared. 1H NMR‐based stereochemical assignment of these different diastereoisomers was substantiated by quantum calculations of NMR shifts and coupling constants, allowing revision of the initially reported transalpinecine structure. One of these synthetic compounds significantly potentiates the activity of the F508del‐CFTR corrector VX‐809.