Mauritanian claims to the territory were thus used to stave off the perceived threat of Moroccan expansionism, and to entice Spain into dividing the territory between Morocco and Mauritania in the Madrid Accords. This, however, did not take into account an Advisory Opinion by the International Court of Justice (ICJ) that had decided in late 1975 that the people of Western Sahara had a right to self-determination, to be exercised freely in the form of a choice between integration with one or both of Mauritania and Morocco, or setting up an independent state.[1][7] The Mauritanian portion of the territory, corresponding to the southern half of Río de Oro, or one-third of the entire territory, was renamed Tiris al-Gharbiyya.