Two successive regio- and chemoselective magnesiations using TMPMgCl·LiCl and TMP2Mg·2LiCl enable the full functionalization of protected uracils and thiouracils in good to excellent yields.