The asymmetric unit of the title compound, C(11)H(9)N(3)O, contains two independent and nearly identical mol-ecules (A and B). Mol-ecule A can be transformed to B using a rotation of approximately 85° around the [111] direction. Each A mol-ecule is connected to three B mol-ecules via N-H⋯N and N-H⋯O hydrogen bonds and vice versa. Centrosymmetric-ally related mol-ecules of the same residue form π-π inter-actions with centroid-centroid distances of 4.326 (1) and 3.826 (1) Å for the benzene rings of mol-ecules A and B, respectively.