Cl[C:2]1[CH:7]=[CH:6][N:5]=[C:4]([C:8]([O:10][CH3:11])=[O:9])[CH:3]=1.[Na].[CH3:13][OH:14]>>[CH3:13][O:14][C:2]1[CH:7]=[CH:6][N:5]=[C:4]([C:8]([O:10][CH3:11])=[O:9])[CH:3]=1A mixture of methyl 4-chloropyridine-2-carboxylate (3.7 g), sodium metal (0.5 g) and methanol (100 ml) was stirred and heated to reflux for 8 hours. The mixture was evaporated and the residue was partitioned between ethyl acetate and water. The organic phase was dried (MgSO4) and evaporated to give methyl 4-methoxypyridine-2-carboxylate (3 g).