1,2,4-Triazolo[3,4-b][1,3]benzothiazole, 1,2,4-triazolo[4,3-a]pyrimidine, and thieno[3,2-e][1,2,4]-triazolo[4,3-a]pyrimidine derivatives were synthesized by reactions of 1-hetaryl-4-phenylthiosemicarbazides with N,N′-dicyclohexylcarbodiimide.We previously showed that heterocyclization of 1-(1,3-benzothiazol-2-yl)-4-phenylthiosemicarbazide with methyl iodide in ethanol in the presence of sodium acetate leads to the formation of 2,2′-dithiobis-[N-(3-methylsulfanyl-4-phenyl-1,2,4-triazol-5-yl)aniline] [1] and that 1-(4-methyl-6-oxo-1,6-dihydropyrimidin-2-yl)-4-arylthiosemicarbazides under analogous conditions are converted into 3-arylamino-7-methyl-5-oxo-1H-1,2,4-triazolo[4,3-a]pyrimidines [2]. 1-(4,6-Dimethylpyrimidin-2-yl)-4-arylthiosemicarbazides give rise to 2-arylamino-5,7-dimethyl-1,2,4-triazolo[1,5-a]-pyrimidines, and the reaction is accompanied by Dimroth rearrangement. Likewise, substituted 1-(thieno[2,3-d]pyrimidin-2-yl)-4-arylthiosemicarbazides reacted with methyl iodide to give fused heterocyclic compounds, derivatives of thienotriazolopyrimidine [3]. The regioselectivity of this reaction is the same as in the formation of 3-arylamino-7-methyl-5-oxo-1H-1,2,4-triazolo[4,3-a]pyrimidines, where the N 3 atom in the pyrimidine ring is involved in triazole ring closure.The pyrimidine ring in the compounds examined by us previously contains two atoms accessible for intramolecular electrophilic attack leading to cyclization; these are the N 1 and N 3 atoms. Insofar as the above cyclizations occurred at the N 3 atom in the pyrimidine ring, it was interesting to force the cyclization (triazole ring closure) to involve more basic N 1 atom. For this purpose, we made an attempt to convert the thiosemicarbazide fragment in the substrate into a more reactive carbodiimide fragment via elimination of hydrogen sulfide by the action of N,N′-dicyclohexylcarbodiimide. Analysis of published data [4][5][6][7] showed that carbodiimides are quite applicable for such transformation. Intermediate carbodiimide thus generated seems