[reaction: see text] Total synthesis of aloperine and 6-epi-aloperine is reported. The crucial steps of the synthetic strategy are an aza-annulation reaction and an intermolecular Diels-Alder reaction. The synthetic plan proceeds from commercially available piperidine-2-ethanol.