Three-component reaction of 2,6-diamino-4-aryl-3,5-dicyano-4H-thiopyrans, acetoacetanilides, and alkylating reagents proceeds via cross-recyclization of thiopyrans to form 6-alkylthio-4-aryl-N-aryl-2-methyl-5-cyanonicotinamides, 3-imino-6-methyl-2-(4-methoxybenzoyl)-4-(3,4-dimethoxyphenyl)-N-phenyl-2,3-dihydrothieno[2,3-b]pyridine-5-carboxamide, and 3-amino-6-methyl-4-(3,4-dimethoxyphenyl)-2-(4-oxo-4H-pyrido[1,2-a]-pyrimidin-2-yl)-N-phenylthieno[2,3-b]pyridine-5-carboxamide.Search for biologically active nicotinamide derivatives is a promising to develop herbicides [1, 2] and drugs for Alzheimer's disease treatment [3,4].Studies on preparation of functionally substituted nicotinamide derivatives [5][6][7][8] showed that cross-recyclization of 2,6-diamino-4-aryl-3,5-dicyano-4H-thiopyrans Ia-Ic with acetoacetanilides IIa and IIb in refluxing ethanol in the presence of an equimolar quantity of triethylamine followed by addition of the alkylating reagent IIIa-IIIe afforded new nicotinamide derivatives such as 6-alkylthio-4,N-diaryl-2-Apparently, the reaction pathway included opening of the thiopyran ring to form intermediate VI that was further transformed into arylmethylidenecyanothioacetamide VIII via malononitrile VII elimination [9][10][11]. The Michael addition of acetoacetanilide II to arylmethylidenecyanothioacetamide VIII led to formation of the corresponding labile adduct IX, which underwent intramolecular heterocyclization to give the substituted pyridine X. The latter was subject to regioselective alkylation at the sulfur atom to form the corresponding thioethers IVa-IVg, in accordance with fundamentals of 2-mercaptopyridine chemistry [12,13]. At the same time, the cross-recyclization of thiopyran Ia, acetoacetanilide IIa, and 4-methoxyphenacylchloride IIIa yielded unknown 3-imino-6-methyl-2-(4-methoxybenzoyl)-4- (3,4-dimethoxyphenyl)-N-phenyl-2,3-dihydrothieno[2,3-b]pyridine-5-carboxamide V instead of the expected thioether XI, due to rapid intramolecular cyclization of intermediate XI.Noteworthily, formation of the substituted thieno[2,3-b]pyridines of that type generally does not stop at the stage of the imine V formation due to spontaneous transformation of the latter into the amine [14][15][16]. That reaction pathway was realized when 4-oxo-2-chloromethyl-4H-pyrido[1,2-a]pyrimidine IIId was used as an alkylating agent. As a result, 3-amino-6-methyl-4-(3,4-dimethoxyphenyl)-2-(4-oxo-4Н-pyrido [1,2-a]pyrimidin-2-yl)-N-phenylthieno[2,3-b]pyridine-5-carboxamide VI was obtained.