In the title compound, C13H16N2O2S, the pyrrolidine ring has a twisted conformation on the central -CH2-CH2- bond. Its mean plane is inclined to the 4-meth-oxy-benzoyl ring by 72.79 (15)°. In the crystal, mol-ecules are linked by N-H⋯O and C-H⋯O hydrogen bonds to the same O-atom acceptor, forming chains along [001]. The chains are linked via slipped parallel π-π inter-actions [inter-centroid distance = 3.7578 (13) Å], forming undulating slabs parallel to (100).
In the title compound, C14H18N2O2S, the piperidine ring has a chair conformation. Its mean plane is twisted with respect to the 4-meth-oxy-benzoyl ring, with a dihedral angle of 63.0 (3)°. The central N-C(=S)-N(H)-C(=O) bridge is twisted with an N-C-N-C torsion angle of 74.8 (6)°. In the crystal, mol-ecules are linked by N-H⋯O and C-H⋯O hydrogen bonds, forming chains along the c-axis direction. Adjacent chains are linked by C-H⋯π inter-actions, forming layers parallel to the ac plane. The layers are linked by offset π-π inter-actions [inter-centroid distance = 3.927 (3) Å], forming a supra-molecular three-dimensional structure.