A general strategy for the synthesis of indoloquinolizine alkaloids via a cyanide-catalyzed imino-Stetter reaction.