Nine centuries on the banks of the Sebou
1162 · The Almohad arsenal
At the time, the place is called al-Ma'mura. The geographer al-Idrisi, around 1154, gives it only a word: it is a stage on the road from Ksar el-Kebir to Salé. Eight years later, the Almohad caliph Abd al-Mu'min has a fleet built there to cross over to al-Andalus.
أَعَدَّ مِنْهَا فِي مَرْسَى الْمَعْمُورَةِ بِحَلْقِ الْبَحْرِ عَلَى وَادِي سَبُو بِمَقْرُبَةِ سَلَا مِائَةً وَعِشْرِينَ قِطْعَةً، وَقَفْتُ عَلَيْهَا وَعَدَدْتُهَا بِالْمَرْسَى الْمَذْكُورِ
“He made ready a hundred and twenty of them at the anchorage of al-Ma'mura, at the narrows of the sea, on the Wadi Sebou, near Salé. I stood before them and counted them at that anchorage.”
The same witness saw, on the riverbank, the troops' wheat and barley “piled up like mountains”. No remains from this period have been found: the slipways and sheds in the scene are an evocation.
The arsenal's slipways
War galleys with a single bank of oars, hauled up on the bank and then launched into the river. Ibn Sahib al-Salat gives a total of about two hundred ships for the whole empire; later authors say four hundred.
The fleet at anchor
A hundred and twenty ships counted here by a witness. The scene shows a dozen.
The grain stores
Wheat and barley “like mountains”, kept in reserve from 557 to 562 AH, until they spoiled. A stronghold lives on its reserves: it is already true here.
1515 · The Portuguese defeat
King Manuel I of Portugal sends a great fleet to build a fortress at the river mouth. It arrives on 23 June; on the 24th, Saint John's Day, work begins: this will be São João da Mamora. At the foot of the hill, they put up a wooden town brought by the ships, behind a ditch that the tide fills.
The site proves fatal: the Moroccans of the Wattasid sultan set up their artillery on the hill, right above. On 10 August, after forty-seven days, the Portuguese withdraw. Part of the fleet is lost on the bar. Leo Africanus, who says he witnessed it, describes the rout and the cannons later fished out of the river.
The fort was never finished and nothing of it remains. The casualty figures (four thousand men, a hundred ships) come from a single Portuguese chronicler: they should be treated with caution.
The wooden town
A prefabricated timber castle, “with bastions and towers”, put up in a day. Behind it, the masons begin stone walls they will not have time to finish.
The cannons on the hill
Whoever holds the heights holds the riverbank. A century later, this lesson would decide the site of the Spanish fort, and then of the kasbah: at the top.
The Sebou bar
A sandbank across the river mouth, “very dangerous and deadly” according to the sailors of the day. It protected the river as much as the walls did.
1614 · The Spanish fort
For a century, the river mouth has no master. Around 1600, it becomes a den of corsairs from Europe. Spain decides to seize it: a fleet of nearly a hundred sail leaves Cádiz on 1st August 1614, lands on the 5th and enters on the 6th. It is the end of jumada II 1023, writes al-Qadiri.
The engineer Cristóbal de Rojas immediately lays out, on the first height, a fort with pointed bastions: San Felipe de La Mamora. The outline of the enclosure seen today is, for the most part, that one. The name “San Miguel de Ultramar” only appears around 1643.
For sixty-seven years, the stronghold is besieged several times, notably by the warrior Sidi Muhammad al-'Ayyashi. It does not fall.
The Italian-style bastions
Sharp-angled points that cover one another with their fire: no stretch at the foot of the walls escapes the cannons. Three face the land; in front of them, a ditch cut into the rock and two ravelins.
The barracks street
The 1614 plan lays out the quarters in a grid along a central street, the Calle Mayor, with two parade grounds. The fort was meant to hold six hundred men.
The corsairs' anchorage
In the summer of 1614, more than thirty ships were sheltering in the river. A sunken boat and a chain barred the entrance.
1681 · Moulay Ismail's kasbah
In the spring of 1681, fighters from the Rif and the Fahs besiege the stronghold under the command of the qaid 'Umar ibn Haddu al-Butu'i. They cut it off from its water. Sultan Moulay Ismail arrives for the surrender, between 11 and 14 rabi' II 1092, that is, between 30 April and 3 May 1681.
وَخَرَجَ رَئِيسُ النَّصَارَى، فَأَمَّنَهُ. وَأَخْرَجَ أَصْحَابَهُ، وَكَانُوا ثَلَاثَمِائَةٍ وَسِتَّةً
“The chief of the Christians came out; he granted him the aman. He brought out his companions: they were three hundred and six.”
From then on, the stronghold bears the name al-Mahdiya. No author of the time explains this name; two explanations circulate, both late. The Moroccans keep the Spanish enclosure, rebuild the eastern side and add what makes it a kasbah: a monumental gate, a palace, a mosque, a hammam, a fondouk, and large storehouses at the foot of the hill.
Tradition attributes this work to the qaid 'Ali ibn 'Abdallah al-Rifi. No Arabic text that we have read says so, and the exact date of the gate is not known: it is a probable attribution, not an established fact.
The seven ramparts of the kasbah
A kasbah is not a wall: it is seven defences that hold one another up. Find them in the scene.
The ditch: the river and the escarpment
Before any wall, there is the site. To the north-west, twenty metres of escarpment and the Sebou; offshore, the bar. On the landward side, where nature does not help, the Spaniards cut a ditch fourteen metres wide into the rock.
The walls: the enclosure and its bastions
Twelve hundred metres around. The Spanish part, in stone, twenty feet high; the part rebuilt in 1681, “of stone, lime and earth”, fifteen feet high.
The gate: Bab Jdid
Two massive towers, a horseshoe arch, and behind it a bent passage: you do not enter in a straight line. Above the arch, two corbels carried, in wartime, a wooden gallery from which the threshold was defended. A gate lets people through, but it chooses whom.
The lookout: the western battery
From this half-moon, you can see the whole river mouth and the sea. The cannons fire through a gallery of arches; above, a parapet with straight merlons. Nothing enters the river without being seen from here.
The repairs: the wall of 1681
The besiegers had demolished part of the enclosure and a bastion. As soon as the stronghold was taken, it was rebuilt. A wall is only worth something if its breaches are closed.
The reserves: the lower storehouses
A row of rammed-earth compartments, each behind a double wall, and silos dug into the rock. The Spanish stronghold fell when it lost its wells: you cannot hold out without reserves.
The inhabitants: the garrison and their families
The mosque, one of the first buildings after the recapture, the hammam and its fifty-two-metre well, the fondouk, the governor's palace. Walls without guards guard nothing.
The governor's palace
Sixty-nine metres long: service courtyards, then a zellige patio with its eight-pointed star basin, surrounded by four long rooms. No colonnaded gallery: it is a great Moroccan house.
The seven seals are gathered
The site, the walls, the gate, the lookout, the repairs, the reserves, the inhabitants: that is how a kasbah holds. QasbaGuard organises the protection of your computer and your phone in the same way, in seven ramparts. It does not replace your antivirus: it complements it.
1795 · The closed port
Around 1795, Sultan Moulay Slimane is said to have closed the port of Mehdia to trade, to protect Fez and Meknes: two studies say so, but we have not read any text by the sultan. The bar silts up, the garrison shrinks, the roofs fall in. In 1911, two hundred people still live within the walls.
The great ruined house
That is how a visitor describes the palace in 1921. The gate, for its part, remained standing.
The drawn ships
On the plaster of the storehouses, skilled hands drew frigates and galleys of the 17th and 18th centuries. The memory of the port has remained on its walls.
1942 · Three days in November
On 8 November 1942, American troops land on the beaches of Mehdia: this is Operation Torch. The kasbah, held by French troops, commands the entrance to the river. Around the kasbah, almost nothing: the small village of Mehdia on the beach, a few huts to the east, the coast road and the railway at the foot of the hill. At dawn on the 10th, the destroyer USS Dallas forces the boom, passes beneath the walls and sails up the Sebou. The kasbah surrenders the same day; the fighting stops on the 11th.
Bab Jdid is badly hit: the central wall falls, a tower is gutted. It has since been rebuilt, on a date we have not found.
The USS Dallas
An old “four-stack” destroyer, guided by the harbour pilot, René Malevergne, who knew every sandbank in the river.
The bombarded gate
The state shown here follows photographs from the winter of 1942-1943.
Today · A monument to pass on
The kasbah has been listed as a historic monument since the dahir of 2 March 1916. The palace was restored from 2010 to 2012. The rest is waiting: the enclosure can be traced all the way round, the interior lies overgrown. Around it, Mehdia has become a town: tightly packed neighbourhoods on the plateau, Mehdia-Plage and its seafront promenade along the ocean. From the top of the walls, you can still see the river flowing between its two jetties, the white bar, and the ocean.
The view from the battery
The jetties date from the 1920s. The river, the bar and the ocean, the sultans, the admirals and the corsairs saw just as you do; the town, for its part, was born in the 20th century.
The fishing port
Blue boats at the foot of the hill, where galleys were built nine centuries ago.
Sidi Boughaba
A lagoon between two lines of dunes, to the south: a protected site and a bird sanctuary.
What is certain, what is reconstructed
- Measured: the outline of the enclosure, the elevations (66 m at Bab Jdid, 30 m at the river wall), the position of the palace, the mosque, the hammam, the fondouk and its shops, the battery and the round redoubt; the large round silos; the two wells near Bab el-Ain; the layout of today's main roads, the density of the neighbourhoods, the position of the fishing port, the cemetery, the beach and the seafront, from OpenStreetMap.
- Also measured: the height of the walls in 1681, according to a French engineer: 6.5 m for the Spanish part, 4.9 m for the rebuilt wall. Seen from above, they look low; at their foot, they stand four times as tall as a man.
- Estimated: the heights of the gate, deduced from photographs; the appearance of the roofs and plasterwork in 1681; the three terraces of the palace; the ditch on the land front, 14 m wide on the 1614 plan, shown in every era.
- Hypothesis: the Almohad arsenal and the Portuguese fort, of which nothing remains; the garrison quarters along the path from the gate to the palace, the stables and their enclosure, the tent camp, which no source locates; the shape of the lime kilns, the stalls in front of the shops, the animals, the herd, the smoke and the positions of the sentries; the clothing and the number of figures, far fewer than in reality; every house, neighbourhood mosque, school and car of today's town; in 1942, the beach villas, the huts east of the kasbah and the position of the coastal battery, which the sources mention without locating them.
Main sources: Ibn Sahib al-Salat, al-Idrisi, al-Ifrani, al-Qadiri, al-Zayani, al-Nasiri; Leo Africanus; the 1614 plans kept at Simancas; the surveys by Samir Raoui; the Bulletin officiel of 6 March 1916; for 1942, the official history of the US Army (G. F. Howe, 1957); for today's town, OpenStreetMap (© OpenStreetMap contributors, ODbL licence). Horse neighs: Freesound, shadoWisp and 3bagbrew, public domain (CC0).