In 1975, as Spain retreated from the territory, Western Sahara was split under the Madrid Accords between Mauritania and Morocco, even if this division was bitterly contested by the Polisario Front. The dividing line ran halfway through Río de Oro, with Morocco taking the northern part plus Saguia el-Hamra, and Mauritania annexing the lower third of the colony as a northern province called Tiris al-Gharbiyya (Western Tiris). Its provincial capital was already called Dakhla.