Polisario forces declared a Sahrawi Arab Democratic Republic based on the boundaries of Spanish Sahara, thus starting a long war against Morocco and Mauritania. Unwilling to continue the conflict, Mauritania pulled out of their zone in 1979, which was then annexed by Morocco.