Mehdya is located in Morocco
Coordinates: 34°15′35″N 6°39′0″W / 34.25972°N 6.65000°W / 34.25972; -6.65000
Country Morocco
 • Total16,262
Time zoneUTC+0 (WET)
 • Summer (DST)UTC+1 (WEST)

Mehdya (Arabic: المهدية, romanizedal-Mahdiyā), also Mehdia or Mehedya, is a town in Kénitra Province, Rabat-Salé-Kénitra, in north-western Morocco. Previously called al-Ma'mura, it was known as São João da Mamora under 16th century Portuguese occupation, or as La Mamora under 17th century Spanish occupation.

According to the 2004 census, the town has a population of 16,262.[1] It is located on Sebou River (Oued Sebu).


Mehdya was previously called Al-Ma'mura ("the well-populated") or La Mamora in Europe, and was a harbour on the coast of Morocco. Per an ancient account, a colony was founded at the site in the 5th century BCE by the Carthaginians, who called it Thymiaterium.[2]

Portuguese occupation (1515)

It was captured by the Portuguese in 1515, and renamed São João da Mamora. Altogether, the Portuguese are documented to have seized 6 Moroccan towns, 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. Four of the stand-alone fortresses only had a short duration: Graciosa (1489), Forte de São João de Mamora (pt) (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, although they were able to keep Ceuta, Tangier and Mazagan.[3]

Pirate haven

During the first Anglo-Spanish War, pirates (including English former privateers) had sold captured prizes in Ireland and at the Barbary Coast, where governments struggled to prevent this trade. When peace came in 1604, pirates soon established a pirate haven at Mehdya, a location with the advantage of being near Spain and major trade routes. The Moroccan sultanate tolerated these pirates due to the wealth they brought to the country.[4] However, during summers, Mehdya became less safe as the calmer waters favored the galleys used to suppress piracy; therefore, the coast of Munster was used as a complementary base for piracy.[5]

The only port on the Moroccan coast in the hands of neither the Spanish nor the Moors,[6] Mehdya became the main retreat of Atlantic pirates under the command of Henry Mainwaring,[7] important not only as a place to sell their plunder, but also for ship maintenance (including careening).[6] Around 1610, Mehdya was the site of a three-day battle between Dutch and English pirates.[8] The Spanish blockaded Mehdya in 1611, sinking ships and blocking the harbor entrance.[6] In the summer of 1614, the harbor housed at least 30 ships weighing at or above 100 tons,[9] though the bar prevented the passage of ships of above ~300 tons burden.[7]

Spanish occupation (1614–1681)

La Mamora harbour and fortress under the Spanish
The Christ of Medinaceli, looted in La Mamora (Medhya), being pulled through the streets of Meknes, by Juan de Valdés Leal, 1681.

In order to secure the Spanish treasure fleet route Mehdya, known as La Mamora, was under Spanish rule between 1614 and 1681.[10] After occupying Larache in 1610, a Spanish fleet under Admiral Luis Fajardo captured Al-Ma'mura during the reign of Mulay Zidan in August 1614, due to the period of anarchy that followed the death of Mulay al-Mansur in 1603.[11] After negotiations with Mulay Zidan, they left a strong garrison of 1,500 men, and called the harbour San Miguel de Ultramar.[2] The works to build the Fortress of La Mamora along with the San Felipe bastion fort started inmediately.[12]

The warlord Sidi al-Ayachi led a counter-offensive against Spain, privateering against its shipping, and obtaining the help of the Moriscos and the English.[11][13] About 1627, he managed to temporarily capture Al-Ma'mura, and add it to his Republic of Salé.[11] La Marora was unsuccessfully sieged on other several occasions.

The Spanish retained the city for 67 years, when it was conquered by the Alaouite ruler Moulay Ismaïl.[2][10] According to tradition, the Bishop of Cadiz had commissioned a statue of Jesus Christ for the church at La Mamora, which was in his diocese. When the Moroccans reoccupied the town in 1681 they took the statue and prisioners as loot, and later received a ransom from the Spanish for the return of the statue and the spaniards, which was taken to Madrid where it is nowadays venerated under the name of Cristo de Medinaceli.[14]

Moroccan (1681-1912)

The new Sultan Mulay Ismail took the city by storm in 1681, and renamed the city al-Mahdiya.[2] (conquest of Mehdya). During this period, the former spanish fortress of La Mamora was restored resulting in the iconic Kasbah Mahdiyya .[15] From 1694 to 1696, the Portuguese blockaded this port in order to counter piracy. In 1795, Mulay Slimane closed the harbour of Mehdya to avoid foreign incursions into Kenitra, and Mehdya was abandoned.[12]

French protectorate of Morocco (1912-1956)

During the french conquest of Morocco, the French occupied Mehdya in 1911.[2]

About 9,000 Allied troops, carried by 19 warships, were landed in Mehdya during Operation Torch in 1942.

See also


  1. ^ "World Gazetteer". Archived from the original on 2012-12-05.
  2. ^ a b c d e Lévi-Provençal, Evariste. "Al Madīya". In Houtsma, Martijn Theodoor (ed.). E. J. Brill's First Encyclopaedia of Islam: 1913 – 1936, Volume 5, L – Moriscos (1987 reprint ed.). p. 122. ISBN 978-90-04-08494-0.
  3. ^ City walls: the urban enceinte in global perspective James D. Tracy p.352
  4. ^ Senior 1976, pp. 48–50.
  5. ^ Senior 1976, pp. 53–54.
  6. ^ a b c Senior 1976, p. 76.
  7. ^ a b Senior 1976, p. 29.
  8. ^ Senior 1976, p. 35.
  9. ^ Senior 1976, p. 73.
  10. ^ a b Sánchez, Juan L. "Gobernadores de La Marora (1614-1681)". La época de los Tercios (in Spanish). Archived from the original on 23 September 2008. Retrieved 29 May 2014.
  11. ^ a b c The Cambridge history of Islam by P. M. Holt, Ann K. S. Lambton, Bernard Lewis p.247
  12. ^ a b Soto, Francisco Javier Bueno (2010). "Larache y La Mamora: dos fortificaciones españolas en tiempos de Felipe III". Aldaba (in Spanish) (34): 51–96. doi:10.5944/aldaba.34.2010.20519. ISSN 2603-9265.
  13. ^ Britain and Morocco during the embassy of John Drummond Hay, 1845-1886 by Khalid Ben Srhir, p.14 [1]
  14. ^ "El Cristo de Medinaceli: Jesús esclavo". ABC. Madrid, Spain. 7 March 1958. Archived (PDF) from the original on 29 May 2014.
  15. ^ قصبة المهدية. Museum with no Frontiers. Retrieved January 27, 2018.