Western Sahara is a disputed territory in the Maghreb region of North Africa, bordered by Morocco to the north, Algeria to the northeast, Mauritania to the east and south, and the Atlantic Ocean to the west. Its surface area amounts to 266,000 square kilometres (103,000 sq mi). It is one of the most sparsely populated territories in the world, mainly consisting of desert flatlands. The population is estimated at just over 500,000, of which nearly 40% live in Laayoune, the largest city in Western Sahara.
Occupied by Spain until the late 20th century, Western Sahara has been on the United Nations list of non-self-governing territories since 1963 after a Moroccan demand. It is the most populous territory on that list, and by far the largest in area. In 1965, the UN General Assembly adopted its first resolution on Western Sahara, asking Spain to decolonise the territory. One year later, a new resolution was passed by the General Assembly requesting that a referendum be held by Spain on self-determination.
In 1975, Spain relinquished the administrative control of the territory to a joint administration by Morocco (which had formally claimed the territory since 1957) and Mauritania. A war erupted between those countries and the Sahrawi national liberation movement, the Polisario Front, which proclaimed the Sahrawi Arab Democratic Republic (SADR) with a government in exile in Tindouf, Algeria. Mauritania withdrew in 1979, and Morocco eventually secured de facto control of most of the territory, including all the major cities and natural resources.
As of 2017, no other member state of the United Nations has ever recognized Moroccan sovereignty over Western Sahara. However, a number of countries have expressed their support for a future recognition of the Moroccan annexation of the territory as an autonomous part of the Kingdom. Overall, the annexation has not garnered as much attention in the international community as many other disputed annexations (e.g. the Russian annexation of Crimea).
Since a United Nations-sponsored ceasefire agreement in 1991, two thirds of the territory (including most of the Atlantic coastline) has been under de facto control by Morocco, strongly backed by France and the USA, and the remainder by the SADR, strongly backed by Algeria. Internationally, countries such as Russia have taken a generally ambiguous and neutral position on each side's claims, and have pressed both parties to agree on a peaceful resolution. Both Morocco and Polisario have sought to boost their claims by accumulating formal recognition, essentially from African, Asian, and Latin American states in the developing world. The Polisario Front has won formal recognition for SADR from 37 states, and was extended membership in the African Union. Morocco has won recognition or support for its position from several African governments and from most of the Arab League. In both instances, recognitions have, over the past two decades, been extended and withdrawn according to changing international trends.