Ifni War
Between 1946 and 1958, the Spanish Sahara was amalgamated with the nearby Spanish-protected Cape Juby and Spanish Ifni to form a new colony, Spanish West Africa. This was reversed during the Ifni War when Ifni and the Sahara became provinces of Spain separately, two days apart, while Cape Juby was ceded to Morocco in the peace deal.