Simple methods for the synthesis of previously unknown sulfur-containing pyridia-2-ones and 5,6,7,8-tetrahydroquinolines from cyanothioacetamide and anilinomethylidene derivatives of cyclic 1,3-dicarbonyl compounds were developed. Structures and chemical transformations of compounds obtained were studied.