Morocco–Portugal relations cover a period of several centuries to the present. Initial contacts started in the 8th century, when Muslim forces invaded most of the territory of the Iberian peninsula. After the Reconquista, Portugal would then expand into Africa, starting with the territory of Morocco, by occupying cities and establishing fortified outposts along the Moroccan coast.
First Islamic expansion (8th century)
Following the invasion of southern Iberian Peninsula from the coast of Morocco by the Berber Commander Tariq ibn Ziyad in 711, during the 8th century Arab and Berber armies invaded the rest of Iberia, and even went beyond to Southern France, and as far as Poitiers and the Rhône valley until the turning point of the Battle of Tours in 732. The Rio Douro eventually became the boundary between Christian and Muslim lands. The land between the Douro and Rio Minho was the Christian County of Portucale, which became the Kingdom of Portugal under Afonso Henriques in 1129.
Moroccan expansion in the Iberian peninsula (11th–14th century)
Portuguese expansion in Morocco (1415–1515)
Portugal started to occupy parts of coastal Morocco from 1415 with the conquest of Ceuta, which was besieged unsuccessfully three years later by the Moroccans. Then under Afonso V of Portugal, Portugal conquered Alcácer Ceguer (1458), Tangiers (won and lost several times between 1460 and 1464) and Arzila (1471). This achievements granted the king the nickname of the African.
Portugal and Spain had passed an agreement in 1496 in which they effectively established their zones on influence on the North African coast: Spain could only occupy territory east of Peñon de Velez. This restriction would only end with the dynastic union of the Portuguese and Spanish crowns under Philip II after the 1578 Battle of Ksar El Kebir, when Spain started to take direct actions in Morocco, as in the occupation of Larache.
Altogether, the Portuguese are documented to have seized 6 Moroccan cities and built 6 stand-alone fortresses on the Moroccan Atlantic coast, between the river Loukos in the north and the river of Sous in the south.
Moroccan reconquest (1541–1769)
Of the 6 stand-alone fortresses, four of them only had a short duration: Graciosa (1489), São João da Mamora (1515), Castelo Real of Mogador (1506–10) and Aguz (1520–25). Two of them were to become permanent urban settlements: Santa Cruz do Cabo de Gué (Agadir, founded in 1505-06), and Mazagan founded in 1514-17.
The Portuguese had to abandon most of their settlements between 1541 and 1550 following the offensives of Mohammed ash-Sheikh, particularly the Fall of Agadir in 1541 and the Conquest of Fez in 1550. Nevertheless, they were able to keep a few bases: Ceuta (1415–1668), Tangier (1471–1661) and Mazagan (1502–1769).
The Battle of Ksar El Kebir in 1578 was a landslide event, as the Portuguese king Sebastian of Portugal was killed in the encounter and his army eliminated by Moroccan forces in alliance with the Ottoman Empire.
Tangier was ceded to England in 1661 in order to encourage England to support Portugal in the Portuguese Restoration War, and Ceuta was finally handed over to Spain in 1668 through the Treaty of Lisbon, which finally recognized the House of Braganza as Portugal's new ruling dynasty and it's rule over Portugal's remaining overseas colonies. These events essentially ended Portugal's direct involvement in Morocco, until they abandoned Mazagan under the pressure of Mohammed ben Abdallah in 1769.
Five years later, in 1774, the Governments of Morocco and Portugal concluded a Peace and Friendship Agreement, one of the oldest bilateral agreements of both nations.
- Tricolor and crescent: France and the Islamic world by William E. Watson p.1
- Reconquest and crusade in medieval Spain by Joseph F. O'Callaghan p.31
- The last great Muslim empires: history of the Muslim world by Frank Ronald Charles Bagley, Hans Joachim Kissling p.103ff
- City walls: the urban enceinte in global perspective James D. Tracy p.352