The six-membered heterocycle in the title compound, C(18)H(16)BrN(3)O(4)S, adopts a sofa conformation. Intra-molecular N-H⋯N and O-H⋯O hydrogen bonds stabilize the mol-ecular conformation by forming a five- and a six-membered ring, respectively. The crystal packing is stabilized by inter-molecular C-H⋯O hydrogen bonds.