The reaction of ethyl 5-acetyl-3,4-dihydropyridine-1(2H)-carboxylate with diverse aliphatic as well as aromatic monosubstituted hydrazines resulted in the regioselective formation of N-substituted 3-methylpyrazoles.