Methyl 4-hydroxybenzoate (260 mg, 1.71 mmol) was dissolved in N,N-dimethylformamide (DMF, 25 mL) at room temperature, followed by the addition of 60% sodium hydride (NaH, 75 mg, 1.9 mmol). The reaction mixture was stirred for 30 min. After that, 5-bromo-2-chloropyrimidine (300 mg, 1.55 mmol) was added and the reaction system was heated to 130 °C and the reaction was maintained for 0.5 hours. After standard post-treatment and purification steps, the target product methyl 4-(5-bromopyrimidin-2-yloxy)benzoate (428 mg, 89% yield) was obtained.