We report an efficient one-step approach to 4-thio and 4-aminopyrrolo[3,4-c]pyridines based on the selective reaction of malonthioamides and malonamidines with methyl acetylpyruvate. Structural proof is given by HMBC and HMQC spectra. A cascade heterocyclization mechanism is proposed for the reactions studied.