Synthesis of multisubstituted 2-aminopyrroles/pyridines via chemoselective Michael addition/intramolecular cyclization reaction.