1,2-Diaza-1,3-butadienes react as Michael acceptors with nitrogen 1,3-dinucleophiles, such as arylamidines, in a one-pot heterocyclization reaction. Depending on the nature of the acyl residue at the terminal carbon of the heterodiene system, spiro pyrroloimidazole derivatives or 2-arylimidazoles can be obtained.