phosphate mining, and the potential for oil reserves) and political reasons (stability of the king's position and the governing elite in Morocco, deployment of most of the Moroccan Army in Western Sahara instead of in Morocco). The Polisario Front proclaimed the Sahrawi Arab Democratic Republic in Bir Lehlou (Western Sahara), on 27 February 1976. Mauritania Claims on Western Sahara had proliferated since the 1960s, fuelled by Mauritanian President Moktar Ould Daddah. Before Mauritania signed the Madrid Accords and after the withdrawal of the last Spanish forces, in late 1975, the Mauritanian Army invaded the southern part of Western Sahara, while the Moroccan Army did the same in the north. In April 1976, Mauritania and Morocco partitioned the country into three parts, Mauritania getting the southern one, which was named Tiris al-Gharbiyya. Mauritania waged four years of war against Polisario guerrillas, conducting raids on Nouakchott, attacks on the Zouerate mine train and a coup d'état that deposed Ould Daddah. Mauritania finally withdrew in the summer of 1979, after signing the Algiers Agreement with the Polisario Front, recognizing the right of self-determination for the Sahrawi people, and renouncing any claims on Western Sahara. The Moroccan Army immediately took control of the former Mauritanian territory. Mauritania recognized the Sahrawi Arab Democratic Republic on 27 February 1984. Algeria Algeria has supported the independence of the whole of Western Sahara since 1975, when Spanish forces and settlers withdrew from the area. It is one of the few countries to do so in the Arab League. It has provided aid to the 'Polisario Front'. Algeria's role became indirect, through political and military support for the Polisario Front. Algeria recognized the Sahrawi Arab Democratic Republic on 6 March 1976. Its involvement in Western Sahara independence movement has interrupted the development of Algerian-Morocco diplomatic relations, which were restored in 1988. United Nations Western Sahara is on the United Nations list of non-self-governing territories. The UN has been involved since 1988 in trying to find a solution to the conflict through self-determination. In 1988, the Kingdom of Morocco and the Polisario Front agreed to settle the dispute through a referendum under the auspices of the UN that would allow the people of Western Sahara to choose between independence or integration with Morocco. In 1991, the parties agreed upon the Settlement Plan, contingent on the referendum being held the following year, but due to disputes over voter qualification, the vote