Base-mediated [2 + 4] cycloadditions of in situ formed azaoxyallyl cations with N-(2-chloromethyl)aryl amides.