The new title 4-thia-zolidinone derivative, C16H21N3O3S, was obtained from the cyclization reaction of 4-methyl-3-thio-semicarbazone and dimethyl acetyl-enedi-carboxyl-ate (DMAD). The cyclo-hexyl-idene ring has an envelope conformation with the stereogenic centre C atom as the flap. Its mean plane makes a dihedral angle of 56.23 (9)° with the thia-zolidine ring mean plane. In the crystal, mol-ecules are linked by C-H⋯O hydrogen bonds forming chains propagating in the [001] direction. Within the chains there are offset π-π inter-actions between the thia-zolidine rings of inversion-related mol-ecules [centroid-centroid distance = 3.703 (1) Å]. The chains are linked by further C-H⋯O hydrogen bonds, forming slabs parallel to the ac plane.
Keywords: C—H⋯O hydrogen bonds; crystal structure: hydrazine: thiazolidinone; offset π–π interactions.