In the title compound, C(23)H(25)BrN(4)O(3)S(2), the benzene rings bridged by the sulfonamide group are tilted relative to each other by 69.7 (1)° and the dihedral angle between the sulfur-bridged pyrimidine and benzene rings is 70.4 (1)°. The mol-ecular conformation is stabilized by a weak intra-molecular π-π stacking inter-action between the pyrimidine and the 4-methyl benzene rings [centroid-centroid distance = 3.633 (2) Å]. The piperidine ring adopts a chair conformation. In the crystal, mol-ecules are linked into inversion dimers by pairs of N-H⋯O hydrogen bonds.