A one-pot transition metal-free method for synthesizing benzo[4,5]imidazo[1,2-a]quinazoline and imidazo[1,2-a]quinazoline derivatives has been developed. The approach is widely applicable to 2-fluoro-, 2-chloro-, 2-bromo- and 2-nitro-substituted aryl aldehyde and ketone substrates. The fluorescence properties of target compounds were studied.