Morocco annexed the desolate but phosphate-rich northwest African territory after the withdrawal of the region's former colonial power, Spain, and neighbour Mauritania in the 1970s, settling it with around 300,000 Moroccans in 1975.