In a 500 mL three-necked flask equipped with a thermometer, 61 mL (0.5 mol) of N,N-diethyl-3-aminoacrylaldehyde, 50 mL of 95% ethanol, and 5.0 g of potassium bicarbonate (KHCO3) were added sequentially, followed by the slow addition of 65 mL (0.6 mol) of methyl cyanoacetate. The assembled reaction apparatus was placed in an ultrasonic apparatus. The ultrasonic radiation conditions were set to 60 °C reaction temperature, 250 W ultrasonic power and 150 KHz frequency to start the reaction. The reaction progress was monitored by thin layer chromatography (TLC) (unfolding agent: petroleum ether to dichloromethane 1:2 v/v, color developer: sublimated iodine) until N,N-diethyl-3-aminoacrolein was fully reacted. Subsequently, hydrogen bromide (HBr) gas was passed into the reaction system, and the reaction was maintained under the above ultrasonic radiation conditions for about 35 minutes and the reaction was tracked to completion by high performance liquid chromatography (HPLC). At the end of the reaction, the pH of the reaction solution was adjusted to 5-6 with 10% potassium hydroxide solution and left to stratify. The aqueous phase was extracted with ethyl acetate (20 mL x 3) and the organic phases were combined. The organic phase was washed with 10 mL of deionized water and dried over anhydrous sodium sulfate. The desiccant was removed by filtration, and the filtrate was concentrated under reduced pressure to give a light brown liquid methyl 2-bromonicotinate (97.7 g) in 90.5% yield.