Highly substituted 4,4'-biimidazoles were synthesized, in good to excellent yields, through a multicomponent imidazole ring synthesis by using imidazol-4-yl-ethane-1,2-diones as starting materials. The obtained compounds were preliminarily tested as chromogenic and fluorescent sensors for heavy metals.