UV-mediated approach for the preparation of benzo[4,5]imidazo[1,2-a]cyclopenta[e]pyridine derivatives from allomaltols containing a benzimidazole fragment was developed. The suggested method includes ESIPT-induced contraction of a 3-hydroxypyran-4-one core and further intramolecular trapping of unstable α-hy