The paper shows the pathways for the synthesis of hydrogenated azines and azoles containing two or more heteroatoms via the interaction of carbonyl compounds of various series with thiocarbamides and their derivatives under conditions of basic and acidic catalysis. Theoretical and preparative aspects of the reactions leading to the formation of functionally substituted dihydropyrimidines, dihydrothiazines, pyrazolines, thiapyrrolines, and thiadiazolines are presented.