The reaction of 2-(4,5-diphenyl-1H-imidazol-2-yl) aniline and aromatic aldehyde was treated in ionic liquids under catalyst-free condition and gave dehydrogenated 5-aryl-2,3-diphenylimidazo[1,2-c] quinazolines. The same reaction gave un-aromatized 5-aryl-2,3-diphenyl-5,6-dihydroimidazo[1,2-c] quinazoline derivatives while it was controlled in an inert gas. This procedure approach to imidazo[1,2-c] quinazolines has the advantages of milder reaction conditions, one-pot, catalyst free, high yields, and environmentally benign.