The title molecule, C9H7ClN4OS, is almost planar, with an r.m.s. deviation of 0.034 (2) Å for the mean plane through all the non-H atoms. Intramolecular N—H⋯O and N—H⋯N hydrogen bonds form S(6) and S(5) ring motifs, respectively. In the crystal, molecules are assembled into inversion dimers through pairs of co-operative N—H⋯Cl interactions. These dimers are connected along the b axis by N—H⋯O and N—H⋯S hydrogen bonds, generating layers parallel to (103). The layers are further connected along the a axis into a three-dimensional network, through weak π–π stacking interactions [centroid–centroid distance = 3.849 (2) Å].
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.