From 1884 to 1976, it was a Spanish colony.
When the Spaniards left, they handed control to Morocco and Mauritania, but the Algeria-backed Polisario Front* also entered the dispute, fighting the Spanish colonizers.
The Front declared the area an independent country, the Sahrawi Arab Democratic Republic (recognized by around 80 countries), and in 1979 agreed on a truce with Mauritania, which renounced its territorial claims.
National revolutionary liberation movement representing the indigenous Sahrawi people.