In the mol-ecule of the title compound, C(25)H(17)N(5)O(2), the pyridyl ring is oriented at dihedral angles of 8.90 (3) and 28.67 (4)° with respect to the two planar quinolyl ring systems. Intra-molecular N-H⋯N hydrogen bonds result in the formation of four planar five-membered rings, two of which are nearly coplanar with the adjacent quinolyl ring systems.