In the title compound, C29H25N5O3, the dihedral angle between the benzene ring and the pendant quinazoline ring system (r.m.s. deviation = 0.036Å) is 87.60 (17)°. The equivalent angle between the pyrazole ring and the phenyl group is 70.0 (2)°. The dihedral angle between the benzene and pyrazole rings is 30.7 (2)° and overall, the mol-ecular conformation approximates to a Z shape. A short intra-molecular C-H⋯O contact occurs. In the crystal, the mol-ecules are linked by Cπ-H⋯O-type hydrogen bonds and aromatic π-π stacking inter-actions [centroid-centroid distance = 3.860 (3) Å], generating a three-dimensional network.