Kasbah of Chefchaouen: A Fifteenth-Century Moroccan Fortress
Site at a Glance
- Rating
- 4.3
- Popularity
- Medium
- Country
- Morocco
- Primary era
- Medieval
- Eras represented
- Medieval, Early Modern
- Civilizations
- Unclassified
- Site type
- Military
- Remains
- Castle
On this page13 sections
History
The Kasbah of Chefchaouen is a fifteenth-century Moroccan fortress that formed the first stage in the foundation of Chefchaouen. Moulay Ali ibn Rachid made it his residence and military headquarters, establishing it to defend his native region against Portuguese attacks. The stronghold developed into the centre of the Principality of Beni Rachid, a semi-independent political entity whose authority extended beyond the Rif Mountains.
Foundation during Iberian pressure
The fortress emerged during a period when Wattasid rule, the authority of a Berber dynasty governing Morocco, was weakening. At the same time, al-Andalus, the Muslim-ruled region of medieval Iberia, was being conquered by Christian kingdoms. After Portugal captured Tangier in 1471, Moulay Ali ibn Rachid ordered and financed a fortified position to protect and secure the surrounding territory.
Historical traditions and biographical writings place the construction of the fortified walls in the last third of the fifteenth century. The principal tower probably acquired its present form about fifty years later, during the early sixteenth century. Moulay Ali ibn Rachid was a sharif, a person claiming descent from the family of the Prophet Muhammad, and was also associated with the Idrisid dynasty and with Moulay Abd al-Salam ibn Mashish.
Growth of Chefchaouen
A new city developed beside the Kasbah and followed an Andalusian-Moroccan architectural tradition. Chefchaouen’s medina was enclosed by strong walls reinforced with towers and opened through seven gates. Its population and culture expanded after Muslim and Jewish Andalusian refugees arrived following the Christian conquest of Granada in 1492, an event that ended Muslim rule there and was followed by the expulsion of many Muslims and Jews from Spain.
Chefchaouen later became a regional and national religious and cultural centre. The city contained more than 20 mosques, 28 zaouias, or religious lodges devoted to teaching, worship, and the veneration of saints, as well as mausoleums, or tomb monuments associated with these traditions. These institutions contributed to the descriptions “the pious city” and “the blessed city.”
Later uses and preservation
Over the centuries, the Kasbah served several purposes. It was used as a governors’ residence, a military arsenal, and a prison, in addition to its original roles as a fortress and an emir’s residence. Repeated restoration campaigns have altered and preserved the complex over time.
An ethnographic museum was installed in the Kasbah in 1985. It presents cultural and defensive elements associated with Rifian and Moroccan culture, while the former palatial area also contains a centre for Andalusian studies. The Ministry of Culture carried out a renovation campaign in 2023. The Kasbah is classified as part of Morocco’s cultural heritage.
Remains
The Kasbah is a fortified palace in the historic part of Chefchaouen, east of the modern city. The settlement lies at the foot of Jbel Mezedjel, a mountain massif, and is backed by Talassemtane National Park, a protected mountainous area in northern Morocco. The complex measures approximately 72 by 52 metres. Its principal entrance opens onto Outa El Hammam square beside the Great Mosque.
Defensive enclosure
Walls and towers
The complex combines a permanent military camp with a sharifian, or seigneurial, residence. Its defensive enclosure is formed by curtain walls, which are connecting defensive walls between towers, reinforced by eleven towers. The principal tower is the most recent major defensive element and dates to the beginning of the sixteenth century.
Principal tower
The principal tower has an approximately square plan measuring 7.70 by 7.40 metres and rises through three levels. On the ground floor, a square room measuring 5 by 5 metres is organised around a central octagonal pillar. The pillar supports four perpendicular semicircular arches and four low brick domes carried on brick squinches, supports that allow a square room to carry a dome.
Two rectangular rooms occupy the first floor. They are divided by a longitudinal wooden beam supported by a small pillar. The upper level is an open terrace used for observation and defence. A parapet with merlons, the raised solid sections along a parapet, protects the terrace.
Bent entrance passage
On the facade opposite the principal tower, a low and narrow entrance leads towards the souk through a bent passage. This arrangement controlled movement into the fortress. The passage crosses a large room measuring 8 by 4 metres.
Residential and religious spaces
Palatial area and museum
The former palatial area occupies the northeastern corner of the Kasbah. It now contains the ethnographic museum and the centre for Andalusian studies, linking the complex’s residential history with its later cultural functions.
Interior courtyard
An open interior courtyard follows the arrangement of traditional Moroccan houses. A large garden occupies the courtyard, with two basins and a central water fountain surrounded by rooms at ground-floor level.
Great Mosque
The Great Mosque is contiguous with the Kasbah and was enlarged during the seventeenth century. The building is largely undecorated and is distinguished by an octagonal minaret, a form characteristic of northern Morocco.




