Kasbah

The southern end of the Medina, historically the royal and administrative quarter — quieter than the centre, and close to the biggest palaces.

What it's like

The Kasbah grew up around the royal palace complex and remains, in parts, an official and residential district rather than a purely touristic one — it's still home to the King's residence (Dar al-Makhzen) today. Compared to the souk-dense centre around Jemaa el-Fna, the streets here are noticeably calmer, with fewer shop touts and a slower pace, while still being genuinely inside the Medina's walls. Several long-time residents and local guides describe it as their favourite Marrakech quarter specifically for this quality: history at every turn, with a tranquillity that's hard to find elsewhere in the old city.

History: the fortified heart of Almohad power

The Kasbah is the oldest planned district in this part of the Medina, founded in 1185 as the fortified royal quarter of the Almohad dynasty, under Caliph Yaqub al-Mansur — the same ruler responsible for the Koutoubia Mosque and, later, the palace complex that would eventually become El Badi. Before the Almohads, under the earlier Almoravid dynasty, this southern part of the city didn't yet exist in fortified form; the Kasbah quarter and its gates date specifically to the Almohad expansion of Marrakech's defences in the late 12th century.

The complex fell into relative neglect after the Almohad dynasty's decline, but was substantially restored and expanded by the Saadians in the 16th century, under sultans Abdallah al-Ghalib and later Ahmad al-Mansur — the same wealth and building programme that produced the Saadian Tombs and El Badi Palace, both of which sit within or immediately beside the Kasbah quarter today. That layering — Almohad foundations, Saadian expansion, ongoing use as a royal and administrative quarter through to the present — makes the Kasbah arguably the single most historically continuous district in Marrakech, still serving a version of the function it was originally built for nearly 850 years ago.

Bab Agnaou: the Kasbah's ceremonial gateway

Bab Agnaou, built between roughly 1185 and 1190 under Yaqub al-Mansur, is one of the finest surviving examples of Almohad monumental architecture anywhere, and served as the main ceremonial entrance to the royal kasbah — earning it the historical nickname "gate of the palace." Carved from distinctive bluish Gueliz stone, its intricate geometric stonework, Kufic inscriptions and floral motifs represent 12th-century Moroccan craftsmanship at its most accomplished, and the gate remains an active, free-to-pass thoroughfare connecting the Medina to the Kasbah quarter today, rather than a roped-off monument. The gate's name carries several competing historical explanations — possibly derived from a Berber word for "deaf" or "mute" referencing its imposing silence, possibly linked to "gnaoua," referencing the Gnawa people historically associated with routes from further south, or possibly describing the ram-without-horns silhouette left by two now-vanished flanking towers. Whichever etymology is correct, it's worth allowing 15–30 minutes to properly examine the carved detail, and best photographed in the softer light of early morning or late afternoon.

What's nearby

  • Bahia Palace — a short walk away; see our full guide.
  • El Badi Palace — also within easy walking distance; see our full guide.
  • Saadian Tombs — near the Kasbah Mosque, a few minutes further; see our full guide.
  • Kasbah Mosque (Moulay El Yazid Mosque) — one of the city's oldest mosques, dating from the same Almohad period as the Koutoubia, with a distinctive minaret adorned with green zellige tiles, viewable from outside as with all active mosques in Morocco.
  • Bab Agnaou — the historic ceremonial gate described above, connecting the Kasbah to the rest of the Medina.
  • Small local souks — the Kasbah has its own modest markets, considerably quieter than the main souks near Jemaa el-Fna.

Is it a good place to stay?

The Kasbah is a strong middle-ground choice: Medina atmosphere and walkability to major sights, with a calmer, more residential feel than the streets immediately around Jemaa el-Fna. It's a particularly good fit for repeat visitors or anyone who wants the riad experience without quite as much bustle on their doorstep. See our full where to stay guide for the broader comparison.

It's a slightly longer walk to Jemaa el-Fna itself than staying centrally — factor in 15–20 minutes on foot, or a short taxi.

The Agdal Gardens

South of the Kasbah proper, the Agdal Gardens form another significant piece of the same Almohad-era royal complex — a vast walled pleasure garden originally laid out to supply the palace with fruit, olives and a large reservoir, using an irrigation system engineered to draw water from the Atlas Mountains via underground channels, a feat of medieval hydraulic engineering that kept the gardens productive across nearly nine centuries. Access to the Agdal Gardens has historically been more restricted and intermittent than the Kasbah's other major sites, tied to the royal palace's own use of the grounds, so it's worth checking current opening status locally rather than assuming year-round public access.

A suggested walking route

Most visitors cover the Kasbah's highlights in a natural loop: enter through Bab Agnaou from the direction of Jemaa el-Fna, pause to examine the gate's stonework, continue past the Kasbah Mosque to the Saadian Tombs, then walk the short distance to El Badi Palace and finish at Bahia Palace before heading back into the busier central Medina. Done at an unhurried pace with time to actually look at each site rather than rush between them, this loop comfortably fills a half day (see our individual guides linked below for time estimates at each stop), and works equally well in either direction depending on which end of the Medina you're starting from.

Who this is for

History-focused visitors get particular value from basing themselves here — three of the city's most significant historic sites sit within a few minutes' walk, and the quarter's own layered Almohad-to-Saadian-to-present history is genuinely interesting in its own right, not just as a base for visiting other attractions. It also suits repeat Marrakech visitors who've already experienced the busier central Medina and want a calmer, more residential riad stay for a subsequent trip.

Frequently asked questions

What is a kasbah?

A kasbah is a fortified citadel, historically used for both military defence and royal or administrative residence — distinct from a souk, which is simply a market district. Marrakech's Kasbah quarter was purpose-built as this kind of fortified royal seat, and the term is used the same way across many historic North African cities.

Is the Kasbah safe and quiet compared to central Marrakech?

Generally yes — it's consistently described as calmer and less touristy than the streets immediately around Jemaa el-Fna, while remaining fully within the Medina's walls and walkable to the major historic sites.

How old is Bab Agnaou?

It dates to roughly 1185–1190, built under the Almohad Caliph Yaqub al-Mansur as the ceremonial entrance to the royal kasbah — making it nearly 850 years old and one of the best-preserved Almohad monuments in Morocco.

Is the Agdal Gardens open to visitors?

Access has historically varied and been more restricted than the Kasbah's other main sites, tied to the royal palace's own use of the grounds — check current opening status locally through a guide or your riad before planning a visit around it.

Can you enter Dar al-Makhzen, the King's palace?

No — it remains an active royal residence and is not open to the public, unlike the historic palaces (Bahia, El Badi) covered elsewhere in this guide.

Sources & further reading

This guide was researched and written independently by the Totally Marrakech team, drawing on multiple current historical and travel sources, and is not sponsored by or affiliated with any business named above. See also our guides to Bahia Palace, El Badi Palace and the Saadian Tombs, the three sites most commonly combined with a Kasbah visit, and our where to stay guide for how the Kasbah compares as a base with the rest of the Medina, Gueliz and Hivernage.