A selective catalytic cyclothiomethylation method for the synthesis of N,S-macroheterocycles having N-amide substituents is elaborated via the reaction between aromatic carboxylic acid hydrazides, formaldehyde, and α,ω-dithiols possessing from 4 to 6 carbon atoms.Transition metal and rare earth metal salts are used as the catalysts.