Mauritania, along with Morocco, annexed the territory of Western Sahara in 1976, with Mauritania taking the lower one-third at the request of Spain, a former imperial power. After several military losses from the Polisario – heavily armed and supported by Algeria, the regional power and rival to Morocco – Mauritania withdrew in 1979. Its claims were taken over by Morocco.