An appropriately substituted pyridine or pyrimidine 1 can be treated with functionalized phenols 2, 4, and 8 in the presence of a base, such as sodium hydride, sodium hydroxide, or potassium carbonate, to furnish the desired ethers 3, 5, and 9, respectively.