In the title compound, C16H11Cl3N6S·C3H7NO, the seven-membered ring adopts a conformation which is close to the twist-boat form. The molecular components are linked into sheets by a combination of two N—H...N hydrogen bonds and two C—H...O hydrogen bonds. Comparisons are made with other aminopyrimidine derivatives.