Sahrawi nationality law (also romanized as Saharawi) is the law of the Sahrawi Arab Democratic Republic's (SADR) governing nationality and citizenship. The SADR is a partially recognized state which claims sovereignty over the entire territory of Western Sahara, but only administers part of it. The SADR also administers Sahrawi refugee camps.

When Spain relinquished Spanish Sahara, there was no internationally recognized succession of states agreement that defined the terms of the transfer of authority to a new nation-state. Sovereignty has been disputed for nearly fifty years by the SADR and Morocco, which were engaged in open warfare until 1991 and have engaged in a more limited war since 2020.

Despite a negotiated United Nations-administered 1991 ceasefire that included a settlement of the state succession issue via a referendum that was agreed to by the parties to the dispute, the legal status of the territory has not been resolved since the referendum has yet to be held. As such, Morocco, whose administration of Western Sahara is considered by the United Nations to be a foreign occupation, does not have the legal authority to grant nationality or citizenship to the Sahrawi people. Therefore, because the people of Western Sahara have not been able to exercise a referendum on self-determination in a manner recognized by international law, neither the nationality law of Morocco nor that of any other sovereign nation can be imposed upon them. On the other hand, the SADR has never passed an actual nationality law which governs the acquisition of nationality or citizenship for the Sahrawi people.

As a result, Sahrawis who do not live under the authority of the SADR can only gain the rights of citizenship by becoming a national of a foreign state. Under international law, other Sahrawi people are in a legal limbo of statelessness.

International law applicability Under international law, the four elements that are involved in succession are 1) a defined territory, with 2) a permanent population, and 3) a government that is 4) capable of entering into agreements with other states. Typically, the principle of uti possidetis juris, which holds that successor states should retain the integrity of the borders preceding state, underpins the transferring policies of the United Nations and has typically been used in Africa.

Closely tied to those rights and obligations are the consent of the people involved to accept their change in jurisdiction or governance. In 1923, a precedent was established by the International Court of Justice in The Hague that a nation cannot impose its nationality upon foreign nationals without their agreement. Later, the Declaration on the Granting of Independence to Colonial Countries and Peoples adopted on 14 December 1960, specified that persons inhabiting a colonial territory had the right to self-determination and free choice over their independence.

Nationality differs from the domestic relationship of rights and obligations between a national and the nation, known as citizenship. Nationality describes the relationship of an individual to the state under international law; citizenship is the domestic relationship of an individual within the nation. Some nations use the terms nationality and citizenship as synonyms, despite their legal distinction. Nationality is typically obtained under the principle of jus soli, i.e. birth in the territory, or jus sanguinis, i.e. descent from someone who is a national of the country. However, it also can be granted to persons with an affiliation to the country or a national, such as through marriage, or to a permanent resident who has lived in the country for a given period of time through naturalization or registration. When new states are established, typically nationality is extended to all those who were born (or descend from someone born) in the territory of the new state, those who were lawfully resident in that territory for a specified period before the establishment of the new state, or those who habitially reside there and would otherwise become stateless upon the withdrawal of nationality by the preceding state.

History and background Spain had established a protectorate in Spanish Sahara in 1884 by signing agreements with leadership of the inhabitants. Between 1958 and 1975, Spanish Sahara was classified as a Spanish province, and as such, any person born in the territory was conferred Spanish nationality. Morocco gained independence in 1956, and began a nationalist campaign to rebuild Greater Morocco and acquire any territory, by force if necessary, which had been colonized by the French or Spanish and had a shared heritage, history, or language with the Morocco. Those territories included the totalities of the French and Spanish protectorates, and neighboring territories or parts of territories of Algeria, Mali, Mauritania, Spanish Sahara, and others. Beginning in 1963, the United Nations attempted to resolve the issue for Spanish Sahara, focusing on decolonization and the territorial dispute over the area between Mauritania, Morocco, and Spain.

The United Nations General Assembly Resolution 2229, issued on 20 December 1966, demanded that Spain consult with the persons inhabiting their territories of Ifni and Spanish Sahara, and the governments of Mauritania and Morocco or other interested parties, and schedule a referendum for the population of those areas to determine the conditions of their decolonization. The Spanish position was that the area was a province of Spain and that the population would have to request independence. The claims of Mauritanian and Moroccan officials were that they had historical and cultural ties with the region that had been severed by colonization. A visiting mission in 1975 concluded that the inhabitants desired independence. The International Court of Justice (ICJ) heard from all parties and on 16 October 1975 ruled that though the area had historical links with Morocco and Mauritania, the ties were insufficient to prove the sovereignty of either country over the territory at the time of the Spanish colonization. On that basis, they advised that the inhabitants had the right to self-determination.

The Moroccan response to the ruling was to initiate the Green March on 6 November 1975 and annex Spanish Sahara. On 14 November 1975, Spain, Morocco, and Mauritania signed the Madrid Accords agreeing to establish a cooperative transitional administration over the territory, now to be known as Western Sahara. On 19 November 1975, Spain passed Law 40, which called for passage of laws to facilitate decolonizing the territory. But Francisco Franco, Spain's head of state, died the following day and no further legislation was passed concerning processes of decolonization until 4 June 1976, when Royal Decree 2258 was issued. The decree stipulated that Sahrawis wishing to retain their Spanish nationality could apply to do so for one year, but it had a provision that applicants had to appear in Spain and could not process an application through consular services.

On 27 February 1976, the Sahrawi Arab Democratic Republic was declared by the Polisario Front, a liberation movement for Western Sahara, and a government-in-exile was established in Tindouf, Algeria. Military conflict between the Sahrawi Republic, Mauritania, and Morocco broke out and continued until 1979, when Mauritania entered into an agreement with the Polisario to abandon claims to the territory. That year, Mauritania renounced its claims to the area and the Moroccan sultan extended Moroccan nationality to Sahrawis. The UN General Assembly urged Morocco in Resolution 34/37 of 21 November 1979 to enter into the peace process and allow Sahrawis to hold a referendum for self-determination, but fighting continued until 1988, when both parties agreed to an armistice and UN assistance in resolving the dispute. In 1991, the Commission of the United Nations Mission for the Referendum in Western Sahara (MINURSO) called for the referendum to be scheduled. Unable to determine who would be allowed to participate in the process, the peace process was aborted and no referendum held.

Since that time, there has been no agreement on how to define the Sahrawi people — either based on the 1974 Spanish census of the territory, inclusion of all Saharan tribes with historic ties to the territory, or the present population which because of Moroccan policy has displaced people native to the territory — and determine who would be eligible to participate in a referendum. As such, no referendum has successfully been held to determine whether the Sahrawi people consent to a merger with another state or desire independence, and any imposed nationality upon the people by outside entities would be out of compliance with international legal norms.

Normally, the requirements to gain nationality, that is, formal legal membership in a nation, are regulated by a country's constitution, nationality law, and various international agreements to which the country is a signatory. These laws determine who is, or is eligible to be, a national of a sovereign state. The difficulty faced by the Sahrawi people is that when Spain relinquished its control over Western Sahara, no agreement established a successor state or transferred sovereignty and the state's rights and obligations. The United Nations still considers Spain to legally hold administrating power in the territory, maintaining that Morocco has no legal authority and is an occupying foreign power.

However, Morocco controls 85 percent of the country and the Sahrawi Arab Democratic Republic controls the remaining fifteen percent. The Sahrawi Republic is a partially recognized non-self-governing territory which claims sovereignty over the entirety of Western Sahara, but has limited internal administration over only a portion of the territory and no externally recognized sovereignty.

Attempts at resolution In 1997, another round of UN negotiations culminated in the signing of the Houston Accords, which reestablished a time table for a referendum, but ultimately broke down when Morocco refused to allow the referendum to have an option for Sahrawi independence on the ballot. Despite a 2002 determination of the United Nations Legal Counsel that Morocco had no legal administering authority for Western Sahara, Morocco has continued to occupy the territory. In 2007, both sides submitted plans to settle the dispute. Morocco's plan included granting Western Sahara autonomy as a province of Morocco. The Sahrawi Republic rejected the plan and proposed instead that a referendum be held to allow the Sahrawi people to determine whether they want independence or a merger. Though both sides have remained entrenched on these positions, the Polisario announced they would be willing to allow Moroccan nationals living in Western Sahara to become Sahrawi nationals and vote in a supervised referendum on Western Sahara to determine independence or integration with Morocco. The 2007, "Proposal of the Polisario Front for a Mutually Acceptable Political Solution Assuring the Self-Determination of the People of Western Sahara" () stated it would negotiate on:

Another round of negotiations held in 2010 saw no compromise in the positions. Morocco remained willing to grant the Sahrawis the autonomy to govern local affairs in a Moroccan province, while the Polisario maintained that Western Sahara is not a sovereign territory of Morocco. Talks broke down in 2016, with Morocco withdrawing from participation in MINURSO negotiations. The ceasefire collapsed in 2020. Despite the renewal of the mandate for MINURSO through October 2022, no solution to the stalemate over Western Sahara's sovereignty has been forthcoming and conflict has continued.