A multistep one-pot electrochemical synthesis of a variety of complex 2-alkylamino-1,4-benzoxazine derivatives is described. The reactions are regiospecific and diastereospecific in the case of heterocyclic annulation. This cascade sequence, wherein both cycloaddition partners are generated in situ, at room temperature, under metal-free conditions, allows the inverse-electron-demand Diels-Alder reaction of an o-iminoquinone diene and a secondary alkylenamine dienophile, two chemically nonaccessible unstable entities. To increase the molecular diversity, a variant in which the enamine is separately prepared completes the aforementioned procedure. The extension of this reaction should be useful to generate libraries of heterocycles.