It was formed in 1946 by joining the southern zone (the Cape Juby Strip) of the Spanish protectorate in Morocco with the colonies of Ifni, Saguia el-Hamra and Río de Oro into a single administrative unit.
Following the Ifni War (1957–58), Spain ceded the Cape Juby Strip to Morocco by the Treaty of Angra de Cintra, and created separate provinces for Ifni and the Sahara in 1958.
[1][2] Spanish West Africa was formed by a decree of 20 July 1946.
He was ex officio the delegate of the Spanish high commissioner in Morocco in the southern zone of the protectorate, to facilitate its government along the same lines as the other Spanish possessions on the coast.
On 10 and 14 January 1958, respectively, the Sahara and Ifni were raised into regular Spanish overseas provinces completely independent of one another.