In the title compound, C(20)H(18)BrN(5), the bromo-phenyl-substituted quinazoline unit is essentially planar [maximum deviation = 0.098 (3) Å] and makes a dihedral angle of 56.04 (14)° with the imidazole ring. In the crystal, mol-ecules are associated by pairs of N-H⋯N hydrogen bonds to form inversion dimers. All the quinazoline planar systems are oriented almost perpendicular to the [110] direction, making π-π inter-actions possible between adjacent dimers [centroid-centroid distances = 3.7674 (16) and 3.7612 (17) Å]. There are also a number of C-H⋯π inter-actions present. The crystal is a nonmerohedral twin, with a minor twin fraction of 0.47.