In the title compound, C39H36N2O4S, the piperidine ring adopts a twisted half-chair conformation. In the pyrrolo-thia-zole fused-ring system, the pyrrole ring adopts an envelope conformation (with the C atom bound to the thia-zole ring being the flap atom) and the thia-zole ring also exhibits an envelope conformation (with the N atom bound to the pyrrole ring as the flap). The mol-ecular structure features a weak intra-molecular C-H⋯O inter-action. In the crystal, a C-H⋯O inter-action forms a linear chain along the diagonal of the ac plane, generating a C(14) graph-set motif. A weak C-H⋯π inter-action also occurs.