The reactions of thiobenzamide 8 with diazo compounds proceeded via reactive thiocarbonyl ylides as intermediates, which underwent either a 1,5-dipolar electrocyclization to give the corresponding five membered heterocycles, i.e., 4-amino-4,5-dihydro-1,3-thiazole derivatives (i.e., 10a, 10b, 10c, cis-10d, and trans-10d) or a 1,3-dipolar electrocyclization to give the corresponding thiiranes as intermediates, which underwent a S N i'-like ring opening and subsequent 5-exo-trig cyclization to yield the isomeric 2-amino-2,5-dihydro-1,3-thiazole derivatives (i.e., 11a, 11b, 11c, cis-11d, and trans-11d). In general, isomer 10 was formed in higher yield than isomer 11. In the case of the reaction of 8 with diazo(phenyl)methane (3d), a mixture of two pairs of diastereoisomers was formed, of which two, namely cis-10d and trans10d, could be isolated as pure compounds. The isomers cis-11d and trans-11d remained as a mixture. In the reactions of the thioxohydrazone 9 with diazo compounds 3b and 3d, the main products were the alkenes 18 and 23, respectively. Their formation was rationalized by a 1,3-dipolar electrocyclization of the corresponding thiocarbonyl ylide and subsequent desulfurization of the intermediate thiiran. As minor products, 2,5-dihydro-1,3-thiazol-5-amines 21 and 24 were obtained, which have been formed by 1,5-dipolar electrocyclization of the thiocarbonyl ylide, followed by a 1,3-shift of the dimethylamino group.1. Introduction. -The concept of the 1,5-dipolar electrocyclization as a tool for the synthesis of five-membered heterocycles has been proposed 25 years ago [1] [2]. Since, we have shown that thiocarbonyl ylides, which bear a C=O group at the C(a)-atom, undergo this cyclization to give 1,3-oxathioles [3] [4] (see also [5] [6]). These thiocarbonyl ylides were generated in situ by the reaction of thiocarbonyl derivatives with a-diazo carbonyl compounds. Very recently, we reported on the reaction of a-thioxocarbonyl derivatives with diazo compounds [7]. We were mostly interested in systems, in which the conjugated p-system consisted of a C=O or a C=S group, i.e., in reactions of a-thioxo ketone 1 and a-thioxo thioamide 2 (Scheme 1).The reactions with diazo compounds 3 all followed the same pathway: 1,3-dipolar cycloaddition to give a 2,5-dihydro-1,3,4-thiadiazole, N 2 elimination by cycloreversion to produce thiocarbonyl ylides 4, and 1,5-dipolar electrocyclization. The resulting products are either 1,3-oxathioles 5 or 1,3-dithioles 6, respectively. Some thiirane side products, which were formed by a competing 1,3-dipolar electrocyclization, were unstable, and elimination of sulfur led to the corresponding alkenes, e.g., 7.