Multicomponent reactions involving azines (phenanthridine or isoquinoline) and dimethyl acetylenedicarboxylate were undertaken in the presence of heterocyclic NH compounds (indole, 2-methyl indole, 3-methyl indole, carbazole and 3,6-dibromocarbazole) or 1,3-dicarbonyl compounds such as N,N'-dimethylbarbituric acid, 1,3-diethyl-2-thiobarbituric acid, acetylacetone, 1,3-diphenyl-1,3-propandione and cyclopentan-1,3-dione to generate enaminoesters in good yields.