Molecules of 5-methyl-2-phenyl-6,7-dihydrobenzo[h]pyrazolo[1,5-a]quinazoline, C21H17N3, (I), are linked into chains by a combination of a C-H...pi(arene) hydrogen bond and a pi-pi stacking interaction; in the closely related 5-methyl-2-(4-methylphenyl)-6,7-dihydrobenzo[h]pyrazolo[1,5-a]quinazoline, C22H19N3, (II), there are no hydrogen bonds and the molecules are linked into centrosymmetric dim...