Agadir had been a Portuguese base since 1505. Before that, a few unsuccessful attempts to capture it had been made by the Spanish Governor of the Canary Islands, in 1500 and 1504.[1][2] The first Portuguese fort was built privately in 1505 by a Portuguese countryman, and the King of Portugal officially acquired it in 1513, also enlarging it and calling it Santa Cruz do Cabo de Gue.[2]