In the title compound, C(20)H(19)ClN(4)OS, the pyrazole ring makes dihedral angles of 89.2 (4) and 46.4 (4)° with the phenyl and substituted benzene rings, respectively; these two six-membered rings are twisted by 52.1 (4)° with respect to each other. There are intra-molecular hydrogen bonds of types N-H⋯O and N-H⋯Cl.