In the tetrahydroisoindole moiety of the title compound, C17H17NO3S, the six-membered ring assumes a boat configuration and the -S=O group bridges the prow and stern of the boat. The phenyl ring is oriented at a dihedral angle of 83.2 (1)degrees with respect to the pyrrole ring. In the crystal, intermolecular C-H center dot center dot center dot O hydrogen bonds link the molecules into a three-dimensional network. A weak C-H center dot center dot center dot pi interaction involving the phenyl ring is also found. The crystal studied was an inversion twin.