The asymmetric unit of the title compound, C21H19N3O3S, contains two independent molecules. In one molecule, the 1,3-thiazolidine ring forms dihedral angles of 86.19 (8) and 8.37 (8)degrees with the phenyl and benzene rings, respectively. The corresponding dihedral angles in the other molecule are 69.60 (7) and 14.08 (7)degrees. The dihedral angle between the phenyl and benzene rings is 84.70 (8)degrees in one molecule and 69.62 (8) in the other. In the crystal, molecules pack in layers approximately parallel to (102). There are weak C-H center dot center dot center dot O hydrogen bonds within these layers. Further weak C-H center dot center dot center dot O hydrogen bonding occurs between the layers to form a threedimensional network. Lambda weak C-H center dot center dot center dot pi interaction is also observed.