In 1884,
Spain claimed a protectorate over the coast from Cape Bojador to Cape Blanc, and the area was later extended. In 1958, Spain combined separate districts together to form the province of
Spanish Sahara.
A
1975 advisory opinion by the
International Court of Justice on the status of the Western Sahara held that while some of the region's tribes had historical ties to Morocco, they were insufficient to establish "any tie of territorial sovereignty" between the Western Sahara and the Kingdom of
Morocco. In November of that year, the
Green March into Western Sahara began when 300,000 unarmed Moroccans, accompanied by the Moroccan Army armed with heavy weapons,[
verification needed] converged on the southern city of Tarfaya and waited for a signal from King Hassan II of Morocco to cross into Western Sahara. As a result of pressure from France, the US, and the UK, Spain abandoned Western Sahara on November 14, 1975, going so far as to even exhume Spanish corpses from cemeteries. Morocco later virtually annexed the northern two-thirds of Western Sahara in 1976, and the rest of the territory in 1979, following Mauritania's withdrawal.
On February 27, 1976, the
Polisario Front formally proclaimed the Sahrawi Arab Democratic Republic and set up a government in exile, initiating a guerrilla war between the Polisario and Morocco, which continued until a 1991 cease-fire. As part of the 1991 peace accords, a referendum was to be held among indigenous people, giving them the option between independence or inclusion to Morocco. To date the referendum has not been held because of questions over who is eligible to vote.