In the title compound, C(16)H(18)Cl(2)N(4)O(3)S, the five-membered ring is almost planar [maximum deviation = 0.011 (3) Å] and the six-membered ring adopts an envelope conformation. In the crystal structure, N-H⋯N, O-H⋯N and C-H⋯O inter-actions link mol-ecules into a three-dimensional network.