Dissolve 1.0 eq of 2-aminopyridine-5-boronic acid pinacol ester in 0.3-0.6 M organic solvent and add it to a reaction flask equipped with a condenser. Start stirring and add 1.2-1.5 eq of 40% aqueous chloroacetaldehyde dropwise at room temperature. Heat under reflux for 4-6 hours. The reaction is complete as detected by TLC. Add saturated sodium bicarbonate aqueous solution to adjust the pH to 7.5-8.5. Add ethyl acetate while stirring. Stir for 3-5 hours and a large amount of solid will precipitate. Filter and slurry the solid twice with ethyl acetate to obtain the product Imidazo[1,2-a]pyridine-6-boronic acic pinacol ester.