A very simple domino reaction under solvent-free conditions of various pyridine-like heterocycles with 1,2-diaza-1,3-dienes produces in good yields imidazo[1,2-a]pyridines, imidazo[1,2-a]quinolines, and imidazo[2,1-a]isoquinolines. The advantage of this one-pot transformation lies in the use of simple pyridine-like compounds without prefunctionalization of the starting heterocycles.