By the Michael addition reaction of p-methyl, p-nitro substituted benzylidenemalononitriles and thiophenylidenemalononitrile with acetoacetanilide pyridine derivatives were synthesized. Michael addition reaction was carried out for 2,6-dichlorobenzylidenemalononitrile with acetoacetanilide and (E)-2-amino-4-(2,6-dichlorophenyl)-5-(1-hydroxyethylidene)-6-oxo-1-phenyl-1,4,5,6-tetrahydropyridine-3-carbonitrile that is corresponding derivative of pyridine was obtained. Unlike V, VI and VII in this reaction the main product of this reaction is mainly in enol-form. Also the Michael addition reaction of p-trifluorobenzylidenemalononitrile and 2-chloro-5-nitrobenzylidenemalononitrile with acetoacetanilide has been investigated