Morocco–Portugal relations cover a period of several centuries largely historic, and to present not particularly substantial relations. Initial contacts started in the 8th century, when Muslim forces invaded most of the territory of the
Iberian Peninsula
The Iberian Peninsula ( ), also known as Iberia, is a peninsula in south-western Europe. Mostly separated from the rest of the European landmass by the Pyrenees, it includes the territories of peninsular Spain and Continental Portugal, comprisin ...
. After the
Reconquista
The ''Reconquista'' (Spanish language, Spanish and Portuguese language, Portuguese for ) or the fall of al-Andalus was a series of military and cultural campaigns that European Christian Reconquista#Northern Christian realms, kingdoms waged ag ...
,
Portugal
Portugal, officially the Portuguese Republic, is a country on the Iberian Peninsula in Southwestern Europe. Featuring Cabo da Roca, the westernmost point in continental Europe, Portugal borders Spain to its north and east, with which it share ...
would then expand into
Africa
Africa is the world's second-largest and second-most populous continent after Asia. At about 30.3 million km2 (11.7 million square miles) including adjacent islands, it covers 20% of Earth's land area and 6% of its total surfac ...
, starting with the territory of
Morocco
Morocco, officially the Kingdom of Morocco, is a country in the Maghreb region of North Africa. It has coastlines on the Mediterranean Sea to the north and the Atlantic Ocean to the west, and has land borders with Algeria to Algeria–Morocc ...
, by invading cities and establishing fortified outposts along the Moroccan coast.
History
First Islamic expansion -
Umayyad Caliphate
The Umayyad Caliphate or Umayyad Empire (, ; ) was the second caliphate established after the death of the Islamic prophet Muhammad and was ruled by the Umayyad dynasty. Uthman ibn Affan, the third of the Rashidun caliphs, was also a member o ...
(8th century)
Following the invasion of southern
Iberian Peninsula
The Iberian Peninsula ( ), also known as Iberia, is a peninsula in south-western Europe. Mostly separated from the rest of the European landmass by the Pyrenees, it includes the territories of peninsular Spain and Continental Portugal, comprisin ...
by the Umayyad Caliphate with the
Berber
Berber or Berbers may refer to:
Ethnic group
* Berbers, an ethnic group native to Northern Africa
* Berber languages, a family of Afro-Asiatic languages
Places
* Berber, Sudan, a town on the Nile
People with the surname
* Ady Berber (1913–196 ...
Commander
Tariq ibn Ziyad
Tariq ibn Ziyad ( ; ), also known simply as Tarik in English, was an Umayyad commander who initiated the Muslim conquest of the Iberian Peninsula (present-day Spain and Portugal) against the Visigothic Kingdom in 711–718 AD. He led an army and ...
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
Poitiers is a city on the river Clain in west-central France. It is a commune in France, commune, the capital of the Vienne (department), Vienne department and the historical center of Poitou, Poitou Province. In 2021, it had a population of 9 ...
and the
Rhône valley
The Rhône ( , ; Occitan: ''Ròse''; Arpitan: ''Rôno'') is a major river in France and Switzerland, rising in the Alps and flowing west and south through Lake Geneva and Southeastern France before discharging into the Mediterranean Sea ( Gu ...
, until the turning point of the
Battle of Tours
The Battle of Tours, also called the Battle of Poitiers and the Battle of the Highway of the Martyrs (), was fought on 10 October 732, and was an important battle during the Umayyad invasion of Gaul. It resulted in victory for the Frankish an ...
in 732. The
Rio Douro
Rio or Río is the Portuguese and Spanish word for "river". The word also exists in Italian, but is largely obsolete and used in a poetical or literary context to mean "stream".
Rio, RIO or Río may also refer to:
Places United States
* Rio, Fl ...
eventually became the boundary between Christian and Muslim lands. The land between the Douro and
Rio Minho
The Rio Minho is the longest river in Jamaica at . It rises close to the island's geographic centre, flows generally south-southwest and reaches the Caribbean Sea at Carlisle Bay in the central south coast, to the west of the island's southernm ...
was the Christian
County of Portucale, which became the
Kingdom of Portugal
The Kingdom of Portugal was a Portuguese monarchy, monarchy in the western Iberian Peninsula and the predecessor of the modern Portuguese Republic. Existing to various extents between 1139 and 1910, it was also known as the Kingdom of Portugal a ...
under
Afonso Henriques
Dom Afonso IOr also ''Affonso'' (Archaic Portuguese-Galician) or ''Alphonso'' ( Portuguese-Galician) or ''Alphonsus'' (Latin version), sometimes rendered in English as ''Alphonzo'' or ''Alphonse'', depending on the Spanish or French influence ...
in 1139.
Almoravid and Almohad invasions of the Iberian peninsula (11th and 12th centuries)
Iberian Peninsula would again be affected by the expansion of Muslim empires under the
Almoravid
The Almoravid dynasty () was a Berber Muslim dynasty centered in the territory of present-day Morocco. It established an empire that stretched over the western Maghreb and Al-Andalus, starting in the 1050s and lasting until its fall to the Almo ...
and the
Almohad
The Almohad Caliphate (; or or from ) or Almohad Empire was a North African Berber Muslim empire founded in the 12th century. At its height, it controlled much of the Iberian Peninsula (Al-Andalus) and North Africa (the Maghreb).
The Almohad ...
dynasties in the 11th and 12th centuries.
The Portuguese managed to recapture
Lisbon
Lisbon ( ; ) is the capital and largest city of Portugal, with an estimated population of 567,131, as of 2023, within its administrative limits and 3,028,000 within the Lisbon Metropolitan Area, metropolis, as of 2025. Lisbon is mainlan ...
in the 1147
Siege of Lisbon
The siege of Lisbon, from 1 July to 25 October 1147, was the military action against the Almoravid dynasty that brought the city of Lisbon under the definitive control of the new Christian power, the Kingdom of Portugal.
The siege of Lisbon w ...
.
Portuguese expansion in Morocco (1415–1515)

Portugal started to invade and occupy parts of coastal
Morocco
Morocco, officially the Kingdom of Morocco, is a country in the Maghreb region of North Africa. It has coastlines on the Mediterranean Sea to the north and the Atlantic Ocean to the west, and has land borders with Algeria to Algeria–Morocc ...
in 1415 with the
conquest of Ceuta
The Portuguese conquest of Ceuta took place on 21 August 1415, between Portuguese forces under the command of King John I of Portugal and the Marinid Sultanate, Marinid sultanate of Morocco at the city of Ceuta. The city's defenses fell unde ...
, which was
besieged unsuccessfully three years later by the Moroccans. Then under
Afonso V of Portugal
Afonso V (; 15 January 1432 – 28 August 1481), known by the sobriquet the African (), was King of Portugal from 1438 until his death in 1481, with a brief interruption in 1477. His sobriquet refers to his military conquests in Northern Africa. ...
, Portugal conquered
Alcácer Ceguer
Ksar es-Seghir (, ''al-Qasr as-Seghir''), also known by numerous other spellings and names, is a small town on the Mediterranean coast in the Jebala region of northwest Morocco, between Tangier and Ceuta, on the right bank of the river of th ...
(1458),
Tangiers
Tangier ( ; , , ) is a city in northwestern Morocco, on the coasts of the Mediterranean Sea and the Atlantic Ocean. The city is the capital of the Tanger-Tetouan-Al Hoceima region, as well as the Tangier-Assilah Prefecture of Morocco.
Many c ...
(won and lost several times between 1460 and 1464) and
Arzila (1471). These achievements earned 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 invade and 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
A battle is an occurrence of combat in warfare between opposing military units of any number or size. A war usually consists of multiple battles. In general, a battle is a military engagement that is well defined in duration, area, and force ...
, when Spain began
to take direct action in Morocco, as in the occupation of
Larache
Larache () is a city in northwestern Morocco. It is on the Moroccan coast, where the Loukkos River meets the Atlantic Ocean. Larache is one of the most important cities of the Tanger-Tetouan-Al Hoceima region.
Many civilisations and cultures have ...
.
Altogether, the Portuguese are documented to have seized six Moroccan cities and built six stand-alone fortresses on the Moroccan Atlantic coast, between the river Loukos in the north and the river of
Sous
The Sous region (also spelt Sus, Suss, Souss or Sousse) (, ) is a historical, cultural and geographical region of Morocco, which constitutes part of the region administration of Souss-Massa and Guelmim-Oued Noun. The region is known for the en ...
in the south.
The six cities were:
Ceuta
Ceuta (, , ; ) is an Autonomous communities of Spain#Autonomous cities, autonomous city of Spain on the North African coast. Bordered by Morocco, it lies along the boundary between the Mediterranean Sea and the Atlantic Ocean. Ceuta is one of th ...
(1415–1668),
Alcácer-Ceguer (1458–1550),
Tangier
Tangier ( ; , , ) is a city in northwestern Morocco, on the coasts of the Mediterranean Sea and the Atlantic Ocean. The city is the capital city, capital of the Tanger-Tetouan-Al Hoceima region, as well as the Tangier-Assilah Prefecture of Moroc ...
(1471–1661),
Arzila
Asilah () is a fortified town on the northwest tip of the Atlantic coast of Morocco, about south of Tangier. Its ramparts and gateworks remain fully intact.
History
The town's history dates back to 1500 B.C., when Phoenicians occupied a site c ...
(1471–1549),
Safi (1488–1541) and
Azamor
Azemmour or Azammur () is a Moroccan city, lying at the Atlantic ocean coast, on the left bank of the Oum Er-Rbia River, 75 km southwest of Casablanca.
Etymology
The word Azemmour comes from the Berber word ''Azemmur'' ("wild olive tree") ...
(1513–1541).
Moroccan reconquest (1541–1769)

Of the six stand-alone fortresses, four only had a short duration:
Graciosa
Graciosa Island () (literally "graceful" or "enchanting" in Portuguese), also referred to as the ''White Island'', is a volcanic island in the Atlantic Ocean. It is the northernmost of the Central Group of islands in the Azores archipelago. The o ...
(1489),
São João da Mamora (1515),
Castelo Real of
Mogador
Essaouira ( ; ), known until the 1960s as Mogador (, or ), is a port city in the western Morocco, Moroccan region of Marrakesh-Safi, on the Atlantic Ocean, Atlantic coast. It has 77,966 inhabitants as of 2014.
The foundation of the city of Essao ...
(1506–10) and
Aguz (1520–25). Two of them became permanent urban settlements:
Santa Cruz do Cabo de Gué
Agadir (, ; ) is a major city in Morocco, on the shore of the Atlantic Ocean near the foot of the Atlas Mountains, just north of the point where the Souss River flows into the ocean, and south of Casablanca. Agadir is the capital of the Aga ...
(
Agadir
Agadir (, ; ) is a major List of cities in Morocco, city in Morocco, on the shore of the Atlantic Ocean near the foot of the Atlas Mountains, just north of the point where the Sous River, Souss River flows into the ocean, and south of Casabla ...
, founded in 1505–06), and
Mazagan
El Jadida (, ) is a major port city on the Atlantic coast of Morocco, located south of the city of Casablanca, in the province of El Jadida and the region of Casablanca-Settat. It has a population of 170,956 as of 2023.
The fortified city, buil ...
founded in 1514–17.
The Portuguese had to abandon most of their settlements between 1541 and 1550 following the offensives of
Mohammed ash-Sheikh
''Mawlay'' Mohammed al-Shaykh al-Sharif al-Hassani (), known as Mohammed al-Shaykh () (b. 1490 – d. 23 October 1557), was the first sultan of the Saadian dynasty of Morocco (1544–1557). He was particularly successful in expelling the Portugue ...
, particularly the
fall of Agadir
The Fall of Agadir refers to the conquest of the city in Morocco by the Saadians against the Portuguese in 1541.
Background Establishment and trade role
Agadir had been a Portuguese base since 1505. Before that, a few unsuccessful attempts to c ...
in 1541 and the
capture of Fez (1549). Nevertheless, they were able to keep a few bases:
Ceuta
Ceuta (, , ; ) is an Autonomous communities of Spain#Autonomous cities, autonomous city of Spain on the North African coast. Bordered by Morocco, it lies along the boundary between the Mediterranean Sea and the Atlantic Ocean. Ceuta is one of th ...
(1415–1668),
Tangier
Tangier ( ; , , ) is a city in northwestern Morocco, on the coasts of the Mediterranean Sea and the Atlantic Ocean. The city is the capital city, capital of the Tanger-Tetouan-Al Hoceima region, as well as the Tangier-Assilah Prefecture of Moroc ...
(1471–1661) and
Mazagan
El Jadida (, ) is a major port city on the Atlantic coast of Morocco, located south of the city of Casablanca, in the province of El Jadida and the region of Casablanca-Settat. It has a population of 170,956 as of 2023.
The fortified city, buil ...
(1502–1769).
[''City walls: the urban enceinte in global perspective'' James D. Tracy p.352](_blank)
/ref>
The Battle of Ksar El Kebir
A battle is an occurrence of combat in warfare between opposing military units of any number or size. A war usually consists of multiple battles. In general, a battle is a military engagement that is well defined in duration, area, and force ...
in 1578 was a landslide loss, as the Portuguese king Sebastian of Portugal
Sebastian ( ; 20 January 1554 – 4 August 1578) was King of Portugal from 11 June 1557 to 4 August 1578 and the penultimate Portuguese monarch of the House of Aviz.
He was the son of João Manuel, Prince of Portugal, and his wife, Joanna of Aus ...
was killed in the encounter and his army eliminated by Moroccan forces in alliance with the Ottoman Empire
The Ottoman Empire (), also called the Turkish Empire, was an empire, imperial realm that controlled much of Southeast Europe, West Asia, and North Africa from the 14th to early 20th centuries; it also controlled parts of southeastern Centr ...
.
Tangier
Tangier ( ; , , ) is a city in northwestern Morocco, on the coasts of the Mediterranean Sea and the Atlantic Ocean. The city is the capital city, capital of the Tanger-Tetouan-Al Hoceima region, as well as the Tangier-Assilah Prefecture of Moroc ...
was ceded to England
England is a Countries of the United Kingdom, country that is part of the United Kingdom. It is located on the island of Great Britain, of which it covers about 62%, and List of islands of England, more than 100 smaller adjacent islands. It ...
in 1661 to encourage England to support Portugal in the Portuguese Restoration War
The Restoration War (), historically known as the Acclamation War (''Guerra da Aclamação''), was the war between Portugal and Spain that began with the Portuguese revolution of 1640 and ended with the Treaty of Lisbon in 1668, bringing a forma ...
, and Ceuta was handed over to Spain in 1668 through the Treaty of Lisbon
The Treaty of Lisbon (initially known as the Reform Treaty) is a European agreement that amends the two treaties which form the constitutional basis of the European Union (EU). The Treaty of Lisbon, which was signed by all EU member states o ...
, which recognized the House of Braganza
The Most Serene House of Braganza (), also known as the Brigantine dynasty (''dinastia Brigantina''), is a dynasty of emperors, kings, princes, and dukes of Portuguese people, Portuguese origin which reigned in Europe and the Americas.
The hous ...
as Portugal's new ruling dynasty and its rule over Portugal's remaining overseas colonies. These events essentially ended Portugal's direct involvement in Morocco. They abandoned Mazagan
El Jadida (, ) is a major port city on the Atlantic coast of Morocco, located south of the city of Casablanca, in the province of El Jadida and the region of Casablanca-Settat. It has a population of 170,956 as of 2023.
The fortified city, buil ...
under the pressure from Mohammed ben Abdallah
''Sidi'' Mohammed ben Abdallah ''al-Khatib'' (), known as Mohammed III (), born in 1710 in Fez, Morocco, Fes and died on 9 April 1790 in Meknes, was the List of rulers of Morocco, Sultan of Morocco from 1757 to 1790 as a member of the 'Alawi dyna ...
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.
Resident diplomatic missions
* Morocco has an embassy in Lisbon
Lisbon ( ; ) is the capital and largest city of Portugal, with an estimated population of 567,131, as of 2023, within its administrative limits and 3,028,000 within the Lisbon Metropolitan Area, metropolis, as of 2025. Lisbon is mainlan ...
.
* Portugal has an embassy in Rabat
Rabat (, also , ; ) is the Capital (political), capital city of Morocco and the List of cities in Morocco, country's seventh-largest city with an urban population of approximately 580,000 (2014) and a metropolitan population of over 1.2 million. ...
.Embassy of Portugal in Rabat
/ref>
See also
* Foreign relations of Morocco
Morocco is a member of the United Nations and belongs to the African Union, Arab League, Arab Maghreb Union (UMA), Organisation of Islamic Cooperation (OIC), the Non-Aligned Movement and the Community of Sahel-Saharan States (CEN-SAD). Morocco ...
* Foreign relations of Portugal
Foreign relations of Portugal are linked with its historical role as a major player in the Age of Discovery and the holder of the now defunct Portuguese Empire. Portugal is a European Union member country and a founding member of NATO. It is a co ...
* Moroccan–Portuguese conflicts
Moroccan–Portuguese conflicts refer to a series of military engagements between Morocco and Portugal throughout history from 1415 to 1769.
The first military conflict, in 21 August 1415, took the form of a surprise assault on Ceuta by 45,000 ...
Notes
{{DEFAULTSORT:Morocco-Portugal relations
Portugal
Portugal, officially the Portuguese Republic, is a country on the Iberian Peninsula in Southwestern Europe. Featuring Cabo da Roca, the westernmost point in continental Europe, Portugal borders Spain to its north and east, with which it share ...
Bilateral relations of Portugal
History of the foreign relations of Portugal
Portuguese colonisation in Africa