The title compound, C23H22N2O4S, crystallized with two independent molecules (A and B) in the asymmetric unit. They have very similar conformations with the pyrrolidine ring having a twisted conformation, on the Cspiro—Cspiro bond, in both molecules. In molecule A, the mean planes of the benzothiophene and indoline ring systems are inclined to the mean plane of the pyrrolidine ring by 87.59 (10) and 84.51 (11)°, respectively, and to one another by 72.69 (7)°. The corresponding angles in molecule B are 87.15 (10), 84.58 (10) and 72.07 (7)°, respectively. In the crystal, the A and B molecules are linked to one another by two N—H⋯O hydrogen bonds, forming a dimer. These dimers are linked via C—H⋯O hydrogen bonds, forming a three-dimensional structure.