Did you know that the Kasbah Mosque, now known as Mosque Cadi Ayad, boasts a rich history that stretches back to the Almohad Empire? It is one of the most important historic mosques in Marrakesh.
Let’s step back in time. Imagine Marrakesh in the late 12th century. Yaqub al-Mansur, the Almohad Caliph, is commissioning the construction of a new imperial kasbah. This citadel will serve as his residence and the seat of government. A key part of this grand project is a congregational mosque. This mosque is our very own Mosque Cadi Ayad.
Construction likely began around 1185 and finished by 1190. The Kasbah Mosque was not just any mosque. It was meant for the caliph himself and the royal district. Rulers would attend prayers here.
Even after the Almohad Empire fell, the Kasbah Mosque remained highly esteemed. It even rivaled the Kutubiyya Mosque in prestige. Rulers and important figures were buried in a cemetery south of the mosque. This eventually became the Saadian dynasty’s royal necropolis, the Saadian Tombs.
But the story of Mosque Cadi Ayad doesn’t end there. In the late 16th century, disaster struck. A massive explosion at a nearby gunpowder store severely damaged the mosque. The exact year isn’t certain. It was either 1562 or sometime between 1573 and 1574.
The Saadi sultan Moulay Abd Allah al-Ghalib undertook extensive repairs. The southern part of the mosque was possibly the most damaged. Scholars believed the repairs preserved the original Almohad design. However, the stucco decoration inside is likely entirely Saadian. It replaced any earlier decoration. One study suggests the Saadian reconstruction changed the mosque’s internal layout. Even after these repairs, long cracks in the minaret remained visible until the 20th century.
Later, in the second half of the 18th century, Alaouite sultan Sidi Muhammad Ibn Abd Allah also restored the mosque. The wooden cupola at the central entrance to the prayer hall dates from this time. Despite these changes, it seems later sultans preserved the original form of the mosque.
Fast forward to August 16, 1907. A group led by Madani El Glawi gathered at the mosque. They pledged allegiance to Abdelhafid as their sultan. This was during a time of upheaval in Morocco.
Today, Mosque Cadi Ayad is still used for prayer. Non-Muslims are not allowed to enter, as with other mosques in Morocco.
The mosque’s exterior is imposing. High walls are crowned with merlons above a row of corbels. Large pointed horseshoe arches line the walls. Some are walled in, while others frame the gates.
The minaret has a square base and is divided into two parts. The main part features plain walls of rubble stone. Above the mosque’s roof, the minaret is made of brick and decorated. Three narrow horseshoe arches are topped by larger polylobed arches on each side. An interlacing sebka pattern is sculpted in brick and filled with green faience. A large frieze of green and white geometric mosaic tiles wraps around the minaret.
Inside, the mosque is roughly square. The floor plan is dominated by a large courtyard divided into five parts. A large central rectangular courtyard and four minor rectangular courtyards at its corners. The prayer hall is on the south side of the courtyard. It is a hypostyle space with rows of arches.
Like most Almohad mosques, the interior is relatively austere. The rhythmic repetition of arches creates an aesthetic effect. The area around the mihrab is the most decorated. Stucco decoration features elaborate arabesques.
The minbar of the Kasbah Mosque is similar in style to the Almoravid minbar of the Kutubiyya Mosque. It is made of wood and decorated with marquetry and inlaid carved decoration.
Interestingly, the mosque is not oriented towards the true qibla. Its qibla is oriented towards the south.
Mosque Cadi Ayad stands as a testament to the enduring legacy of Marrakesh’s Islamic heritage. Its walls have witnessed centuries of history. It has been a place of worship and a symbol of power.