A novel 2-amino-4-(8-quinolinol-5-yl)-1- (p-tolyl)-pyrrole-3-cabonitrile (2) was obtained by the reaction of 2-[2-bromo-1-(8-hydroxyquinolin-5-yl)-ethylidene]-malononitrile (1) with p-toluidene. The new synthon compound (2) could be annelated to the corresponding pyrrolo[2,3-d]pyrimidines (4, 6, 7, 26-28), triazolo[1,5-c]pyrrolo[3,2-e]pyrimidines (10, 29, 30), pyrrolo[2,3-c]pyrazoles (11-15), pyrrolo[1,2-a]pyrrolo[3,2-e] pyrimidine (17) and imidazo[1,2-c]pyrrolo[3,2-e]pyrimidines (18-25) via the reaction with some reagents such as acetic anhydride, formamide, triethyl orthoformate, hydrazine hydrate, hydroxylamine, ethylenediamine, carbon disulfide and phosphorus oxychloride. Chemical and spectroscopic evidences for the structures of these compounds are presented. The antifungal and antibacterial activity of the newly synthesized comounds were evaluated.