3-Cyanopyridines containing an acetyl, ester, nitro, or cyano group in the 5-position were synthesized via various versions of the Hantzsch reaction. Recyclization of quaternary pyridinium salts by the action of aqueous-alcoholic alkali afforded 2-methylaminopyridine derivatives and 6-methylamino-3-nitro-2,4-diphenylbenzonitrile. R = 4-ClC 6 H 4 (a), 4-MeOC 6 H 4 (b), 2,4-(MeO) 2 C 6 H 3 (c), 2-furyl (d), Me (e).In continuation of our studies on recyclization of pyridinium salts having a cyano group in position 3 [1-3] we synthesized previously unknown cyanopyridines IIa-IIg with a view to examine the effect of structural and electronic factors on the direction of recyclization of quaternary salts derived therefrom. Symmetrically substituted 3,5-dicyanopyridines IIaIIe were obtained by cyclocondensation of 3-amino-2-butenenitrile with various aldehydes (HantzschMeyer-Mohr reaction), by analogy with the synthesis of 3,5-dicyanopyridines reported previously [4-6]. 1,4-Dihydropyridines Ia-Ie were oxidized with sodium nitrite in acetic acid. Both stages in the synthesis of pyridines IIa-IIe (Scheme 1) were characterized by fairly high yields. 5-Acetyl-6-methyl-2-phenylpyridine-3-carbonitrile (IIf) was prepared by three-component condensation of benzoylacetonitrile, triethyl orthoformate, and 4-amino-3-penten-2-one at a ratio of 1 : 3 : 1 at 70°C. Under these conditions, addition of the β-carbon atom in the enamine fragment of 4-amino-3-penten-2-one to ethoxymethylene derivative of benzoylacetonitrile gave rise to a new carbon-carbon bond and closure of pyridine ring [7, 8] (Scheme 2). The synthesis of ethyl 5-cyano-2-methyl-4-phenylpyridine-3-carboxylate (IIg) included structural modification of previously described ethyl 5-cyano-2-methyl-6-oxo-4-phenyl-1,6-dihydropyridine-3-carboxylate [9] via nucleophilic replacement of the hydroxy group by chlorine and subsequent reductive dechlorination (Scheme 3). NitroMe 2 SO 4 , NaClO 4 N NC Me CN Me R IIIa-IIIe Me ClO 4 RCHO + 2 CN H 2 N Me N H NC Me CN Me R NaNO 2 , AcOH N NC Me CN Me R Ia-Ie IIa-IIe Scheme 1.