The first fortress on the rocky hill at the mouth of the Sebou River was started by the Portuguese during a very brief occupation in 1515/921 AH. The Spanish occupied the city in 1614/1022 AH and completed a fortress. Forces loyal to the Moroccan Sultan Moulay Ismail recaptured the city in 1681/1091 AH. The southern walls of the city were reinforced, and a monumental gateway, Bab Jdid, was constructed. Inside the walls were the governors palace, gardens, a hamam, mosque, and munitions storage.
Between 2010 and 2012 the Casbah was partially restored under the auspices of the Moroccan Institute for Archaeological Sciences and Heritage (ALINSAP) with support from the U.S. "Ambassadors Fund for Cultural Preservation" and a supplementary budget from the Cultural Heritage Department at the Moroccan Culture Ministry.
SOURCES:
Coindreau, Roger. Roger Coindreau. La Casbah De Mehdia. Rabat: Les Éditions La Porte (impr. De F. Moncho), 1946.
Marcais, G. "L'Architecture Militaire." In Manuel D'art Musulman. Vol. 2, 732-38. Paris, 1927.
10 h.