In 1879, the British North West Africa Company established a trading post named Port Victoria, but in 1895 sold it to the sultan of Morocco.
In 1912, Spain negotiated with France (who controlled the affairs of Morocco at the time) for concessions on the southern edge of Morocco, and on July 29, 1916, Francisco Bens officially occupied Cape Juby.