In the title molecule, C15H11N3, the dihedral angle between the benzene ring and the fused pyrrole ring is 1.07 (5)°. The cyclohexene ring adopts an envelope conformation: the dicyanomethylene group at position 1 has a coplanar orientation. An intramolecular N—H⋯N hydrogen bond generates an S(7) ring motif. Intermolecular N—H⋯N hydrogen bonds form an R 2 2(14) ring in the crystal. A C—H⋯π interaction involving the benzene ring is also found in the structure.