In reaction of oxalic acid dihydrazide with isothiocyanates were obtained the respective thiosemicarbaside derivatives (Ia-IXa). Their cyclization in alkaline media have given the corresponding 4,4'-substituted-5,5'-mercapto-3,3'-bi-1,2,4-triazole (Ib-IXb), in acidic media however were formed the 2,2'-amino-substituted-5,5'-bi-1,3,4-thiodiazole (Ic-VIIIc).