The diazotation of 2-amino-4-chloroanisole (I) with NaNO2 and HCl in water gives the corresponding diazonium salt (II), which is then condensed with imidazole (III) by means of NaOH and sodium acetate in water.