The title compound, C15H13ClN6, contains two pyrimidine rings and one benzene ring, where the dihedral angle between the planes through the pyrimidine rings is 81.57 (10)°, and those between the pyrimidine rings and the benzene ring are 84.02 (8) and 89.46 (7)°, indicating that the three rings are almost perpendicular. In the crystal, intermolecular N—H⋯N hydrogen bonds link the molecules into infinite chains along (100).