The asymmetric unit of the title compound, C(21)H(13)N(3)O(2), contains two independent mol-ecules with a similar structure. In one mol-ecule, the central benzene ring is oriented with respect to the terminal benzene rings at 27.23 (7) and 67.96 (7)°; in the other mol-ecule, the corresponding dihedral angles are 12.42 (7) and 64.55 (7)°. In both molecules, there is a short O-H⋯N interaction involving the OH group and the adjacent N atom. In the crystal, there are O-H⋯N hydrogen bonds, and C-H⋯O and N-H⋯O interactions linking the molecules to form a three-dimensional network. π-π stacking between the pyridine and benzene rings and between the benzene rings [centroid-centroid distances = 3.989 (2), 3.705 (2) and 3.607 (2) Å] may further stabilize the structure. A weak C-H⋯π inter-action is present in the crystal.