The asymmetric unit of the title compound, C(23)H(23)N(5)OS, contains two independent mol-ecules. In one mol-ecule, the thia-zole and pyrimidine rings are almost co-planar, making a dihedral angle of 2.48 (8)°. In the other mol-ecule, the corresponding dihedral angle is 12.82 (8)°. The crystal structure is stabilized by weak inter-molecular N-H⋯N and C-H⋯O inter-actions that extend along the b axis.