Spanish Sahara was the name used for the modern territory of Western Sahara when it was occupied and ruled by Spain between 1884 and 1975. It had been one of the most recent acquisitions of the Spanish Empire as well as one of its last remaining holdings, which had once extended from the Americas to the Philippines and East Asia.
Spain gave up its Saharan possession following Moroccan demands and international pressure, mainly from United Nations resolutions regarding decolonisation. There was internal pressure from the native Sahrawi population, through the Polisario Front, and the claims of Morocco and Mauritania. After gaining independence in 1956, Morocco laid claim to the territory as part of its historic pre-colonial territory. Mauritania claimed the territory for a number of years based on its history, but dropped all claims in 1979.