Substituted thiosemicarbazides react with dimethyl acetylenedicarboxylate to give 3-amino-2,3-dihydrothiazin-4-ones. Confirmation of the structures is provided by catalytic hydrogenation and by characteristic mass spectral fragmentations. 4-Substituted thiosemicarbazides react with methyl propiolate in the same way as monosubstituted hydrazines and hydrazides to give hydrazones, whereas I-substituted thiosemicarbazides undergo smooth removal of the sulfur with the production of an equal mixture of cis-trans and cis-cis dimethyl-6-thiodiacrylic esters. Bicyclic heterocyclic structures are formed by reaction of dimethyl acetylenedicarboxylate with imidazolidone thione and with 5,5-dimethyl-2-thiohydantoin. Substituted guanidines react with dimethyl acetylenedicarboxylate in an analogous fashion, yielding substituted 2,3-dihydrodiazinones. The high-resolution mass spectra of the latter show many similarities to the spectra of the sulfur analogues. Thioamides, despite previous claims to the contrary, react with dimethyl acetylenedicarboxylate to give thioethers of fumarate ester or 1,3-thiazin-4-ones. In contrast, thioamides react with methyl propiolate to give an equal mixture of cis-trans and cis-cis dimethyl-p-thiodiacrylic esters.