Successive regio-and chemoselective magnesiations of pyrimidines using TMPMgCl· LiCl furnish, after trapping with various electrophiles, highly functionalized derivatives in good to excellent yields. Applications to the synthesis of antiviral and anti-inflammatory agents such as p38 and sPLA2 kinase inhibitors are reported.