Kasbah of Marrakech — The Old Royal Quarter of the Medina
The Kasbah of Marrakech is the old royal quarter of the medina, behind the ramparts. Its palaces, tombs and mosque tell the story of the Saadian sultans.
The Kasbah sits in the south of the medina of Marrakech, behind its own walls and gates, and it was the quarter of the sultans for centuries. The quarter holds the Saadian Tombs, the ruins of El Badi Palace, the Kasbah mosque and the great gate of Bab Agnaou, and the Jewish quarter of the Mellah lies just to the east. The Kasbah is not a separate World Heritage property: it stands inside the Medina of Marrakesh, ref 331, which UNESCO listed in 1985. This guide covers the Kasbah in full: where the quarter sits, how it grew from the Almohad period to the Saadian age, how to visit it, and the places that make it one of the most interesting quarters of Marrakech.
Quick Facts
- Quarter: The Kasbah, the old royal quarter of Marrakech.
- Where: In the south of the medina, inside the ramparts.
- Main gate: Bab Agnaou, built around 1185.
- Main sights: The Saadian Tombs, El Badi Palace, the Kasbah mosque and the Mellah.
- Founded: In the 12th century, under the Almohads.
- Golden age: The 16th century, under the Saadian sultans.
- World Heritage: Inside the Medina of Marrakesh, ref 331, listed 1985.
- Best time: In the morning, before the crowds reach the tombs.
- How long: Half a day, with the Mellah and Bahia Palace nearby.
- Nearest separate World Heritage property: Ait Ben Haddou, ref 444, about 103 kilometres away in a straight line.
Geography of Kasbah
The Kasbah lies in the south of the medina of Marrakech, inside the ramparts that ring the old city, and it is a quarter of its own, with walls, gates and streets that set it apart from the rest of the medina. The quarter sits south of Jemaa el-Fna, the main square, and it is reached on foot through the medina or through the great gate of Bab Agnaou. The Kasbah covers a compact area, and it can be walked across in 20 minutes, but the sights inside it take half a day to see properly. The quarter is flat, like the rest of Marrakech, and it lies on the Haouz plain at the foot of the High Atlas, which rises to the south and shows snow on its peaks in winter.
The Kasbah is bounded by the ramparts of the medina on the south and the west, and by the streets of the medina on the north and the east. Bab Agnaou, the great gate of the Kasbah, stands on the north side of the quarter, and it is the main entrance from the medina. The royal palace, Dar el Makhzen, stands inside the Kasbah, and it is still used by the king, so it is closed to visitors.
The Kasbah mosque stands near the gate, and it is the main mosque of the quarter. The Mellah, the Jewish quarter, lies just east of the Kasbah, and the two quarters share a long history. The streets of the Kasbah are quieter than the streets of the medina, and they have a residential feel, with houses, small shops and workshops.
The Kasbah sits in a city that is hot and dry for much of the year, with temperatures that rise above 35 degrees in summer and fall to cool evenings in winter. The quarter has little shade, and the sun beats down on the open courtyards of El Badi Palace and the streets of the Mellah. The best time to walk the Kasbah is in the morning, when the air is cool and the light is soft, or in the late afternoon, when the heat fades.
The quarter is open all year, and it is busiest in spring and autumn, when the weather in Marrakech is at its best. The Kasbah is a walking quarter, and visitors should wear shoes that can walk on stone streets and bring water in summer.
The Kasbah is part of a medina that covers about 700 hectares, and the whole medina was listed by UNESCO in 1985 as the Medina of Marrakesh, ref 331. The Kasbah is named in the UNESCO text for the property, and it is one of the historic quarters that make up the medina, but it is not a separately listed property. The ramparts that bound the Kasbah are part of the original walls of the city, and they give the quarter its shape. The quarter is close to the Koutoubia mosque, whose minaret rises 77 metres and can be seen from the Kasbah, and it is close to the Bahia Palace, which lies just east of the Kasbah walls, beside the Mellah.
The position of the Kasbah in the south of the medina made it the natural place for the palace of the sultans, because it was close to the city and easy to defend. The sultans built their palaces, mosques and tombs here, and the quarter grew around them. The Mellah grew beside the Kasbah because the sultans wanted the Jewish community close to the palace, under their protection.
The quarter still shows this history in its streets: the palace walls, the mosque, the tombs and the Mellah all lie within a short walk of each other. The Kasbah is the most historic quarter of Marrakech, and it is the place where the history of the city is easiest to see.

An outcrop of wall with stork’s nest in the Kasbah district of Marrakesh, with the minaret of the Kasbah Mosque visible — CC BY-SA 2
History of Kasbah
The history of the Kasbah began in the 12th century, when the Almohad rulers of Marrakech built a fortified quarter in the south of the city. The Almohads had founded Marrakech in 1070 to 1072, and they built the city into the capital of a large empire. The Kasbah was the quarter of the palace, and it was built to house the ruler, his court and his soldiers.
Bab Agnaou, the great gate of the Kasbah, was built around 1185, and it is the oldest monument of the quarter. The Kasbah mosque was built in the same period, and it became the main mosque of the quarter. The Almohad period left the walls, the gate and the mosque, and they still stand today.
The Kasbah reached its golden age in the 16th century, under the Saadian sultans, who made Marrakech their capital and rebuilt the quarter. The Saadian sultan Ahmad al-Mansur built El Badi Palace from 1578, and it was one of the most splendid palaces of its time, with marble, gold and a large courtyard. The Saadian Tombs were built in the same period, as the burial place of the Saadian royal family, and they hold the tombs of sultans, princes and their families.
The Mellah, the Jewish quarter, was founded in 1558, and it grew beside the Kasbah under the protection of the sultans. The Kasbah mosque was damaged by a gunpowder explosion in the middle of the 16th century, and it was rebuilt afterwards. The Saadian period made the Kasbah the most splendid quarter of Marrakech, and its palaces and tombs are still the main sights of the quarter today.
The decline of the Kasbah began in the late 17th century, when the Alaouite sultan Moulay Ismail moved the capital to Meknes and stripped El Badi Palace of its marble and gold. The palace was taken apart over 12 years, and its materials were used to build the new capital at Meknes. The Saadian Tombs were sealed around 1697, and they were forgotten for more than two centuries, until they were rediscovered in 1917 during the French protectorate.
The Kasbah itself stayed a residential quarter, with houses, shops and workshops, and it lost its role as the quarter of the sultans. The royal palace stayed in the Kasbah, and it is still used by the king today, but the quarter around it became a quiet part of the medina.
The Kasbah came back to life in the 19th century, when the grand vizier Ba Ahmed built the Bahia Palace in the 1860s to 1900, just east of the Kasbah walls, beside the Mellah. The palace has about 150 rooms, and it was built for the vizier and his family, with gardens, courtyards and painted ceilings. The French protectorate, which ran from 1912 to 1956, restored the monuments of the Kasbah, and the Saadian Tombs were opened to visitors after their rediscovery in 1917.
The medina of Marrakech was listed by UNESCO in 1985, under ref 331, and the Kasbah is named in the UNESCO text as one of the historic quarters of the property. Today the Kasbah is one of the most visited quarters of Marrakech, and its tombs, palace ruins and mosque draw travellers from all over the world.
The Kasbah still shows the layers of its history in its streets, from the Almohad gate of Bab Agnaou to the Saadian tombs and the Alaouite stripping of El Badi. The quarter is a living place, not a museum, and people still live, work and pray in the Kasbah. The mosque is still in use, and the streets around it are full of houses, shops and workshops. The Kasbah is the quarter where the history of Marrakech is most concentrated, and it is the place where a visitor can see, in half a day, the story of the city from the 12th century to the present.

Marrakech kasbah — CC BY 2
Travel to Kasbah
Visitors to the Kasbah usually start at Bab Agnaou, the great gate of the quarter, and walk south through the gate into the Kasbah. The gate is free to see, and it is the best place to start a walk around the quarter. From the gate, the Saadian Tombs lie a short walk to the south, and El Badi Palace lies to the east.
The Kasbah mosque stands near the gate, and it is the main mosque of the quarter, but it is closed to non-Muslim visitors. The Mellah lies just east of the Kasbah walls, and it can be reached on foot in a few minutes. The whole quarter can be walked in half a day, and it pairs well with a visit to the Bahia Palace, which lies just east of the Kasbah, beside the Mellah.
The Saadian Tombs and El Badi Palace both charge an entrance fee, and visitors should buy a ticket at each site. The tombs are the most popular sight in the Kasbah, and they get crowded in the middle of the day, so visitors should come in the morning, when the tombs open, or in the late afternoon, when the crowds thin out. El Badi Palace is a large open ruin, with a courtyard, pools and storks nesting on the walls, and it takes about an hour to see properly.
The Kasbah is a walking quarter, and visitors should wear shoes that can walk on stone streets, bring water in summer and carry a hat for the sun. A guide is useful in the Kasbah, because the history of the quarter is complex, and a local guide can explain the tombs, the palace and the Mellah in a way that a guidebook cannot.
Tickets and crowds shape a visit to the Kasbah more than the weather. The Saadian Tombs are busiest by midday in the high season, so the morning slot is the one to aim for. El Badi Palace stays open and uncrowded all day, because the ruin is large and the visitors spread out.
The Mellah is quietest in the early morning, when the shops open and the streets are empty. A half day in the Kasbah works in any season, as long as the tombs come first.
Food and shopping in the Kasbah are quieter than in the rest of the medina, and the quarter has small cafes and restaurants that serve Moroccan food. The Mellah has restaurants and shops that sell spices, jewellery and crafts, and it is a good place to buy a souvenir. The Bahia Palace area has cafes with views over the gardens, and the streets around the Kasbah have workshops where artisans make leather, metal and wood.
Visitors should try the food of the Mellah, which has its own dishes, and they should buy argan oil and spices from the shops in the quarter. The Kasbah pairs well with a visit to the Medersa Ben Youssef in the north of the medina, which shows the other side of the history of Marrakech, and with the Bahia Palace just east of the quarter.
Notable Places in Kasbah
Bab Agnaou
Bab Agnaou is the great gate of the Kasbah, built around 1185, and it is the most important monument of the Almohad period in Marrakech. The gate is made of stone, with carved decoration and a horseshoe arch, and it stands at the north end of the Kasbah, where the quarter meets the medina. The gate was the ceremonial entrance to the royal quarter, and it was used by the sultan and his court. Visitors can see the gate for free, and it is the best place to start a walk around the Kasbah, because it shows the scale and the craft of the Almohad builders.
The gate is best seen in the morning, when the light falls on the carved stone and the street is quiet. The gate is open all day, and it is easy to reach from Jemaa el-Fna, because it lies a short walk south of the square. The gate is one of the most photographed places in Marrakech, and it is the symbol of the Kasbah. Visitors should look at the carved decoration on the gate, which shows the art of the Almohad period, and they should walk through the gate into the Kasbah, where the streets grow quieter and the quarter begins.
The Saadian Tombs
The Saadian Tombs are the burial place of the Saadian royal family, and they are the most famous sight in the Kasbah. The tombs hold the tombs of sultans, princes and their families, with 66 members of the Saadian dynasty buried here. The tombs were built in the 16th century, sealed around 1697 and rediscovered in 1917, and they were opened to visitors after the rediscovery.
The tombs have marble columns, carved plaster and painted ceilings, and they are one of the finest examples of Saadian art in Morocco. The tombs are the reason most visitors come to the Kasbah, and they are the highlight of a visit to the quarter.
The tombs get crowded in the middle of the day, so visitors should come in the morning, when the tombs open, or in the late afternoon, when the crowds thin out. The tombs are small, and only a few visitors can enter at a time, so the queue can be long. The tombs are best seen slowly, with time to look at the marble and the plaster, and a guide can explain the history of the Saadian family. The Saadian Tombs are a must-see in Marrakech, and they are the highlight of the Kasbah.
El Badi Palace
El Badi Palace is the great ruin of the Kasbah, built from 1578 by the Saadian sultan Ahmad al-Mansur, and it was one of the most splendid palaces of its time. The palace had marble, gold and a large courtyard with pools, and it was the centre of the Saadian court. The palace was stripped by the Alaouite sultan Moulay Ismail over 12 years, and its marble and gold were taken to Meknes.
Today the palace is a ruin, with walls, a courtyard and pools, and storks nest on the walls. The palace is the largest open space in the Kasbah, and it gives the best sense of the scale of the Saadian court.
El Badi Palace stands in ruins, and its scale is the point: the courtyard is one of the largest in Marrakech, ringed by high walls of pisé that once held gold and marble. The museum in the old mosque holds the wooden minbar of the Koutoubia, one of the finest pieces of Almohad woodwork, and the rampart walk looks over the Kasbah roofs to the Atlas foothills. An hour covers the courtyard, the museum and the walls, and the palace rewards a slow walk rather than a quick pass.
The storks that nest on the walls are one of the most photographed sights in Marrakech, and they are a symbol of the palace. Visitors should bring water and a hat, because the courtyard has little shade.
The Mellah and Bahia Palace
The Mellah is the Jewish quarter of Marrakech, founded in 1558, and it lies just east of the Kasbah walls. The Mellah has its own streets, synagogues and shops, and it shows the history of the Jewish community of Marrakech. The quarter is quiet and residential, and it has a different feel from the busy medina.
The Bahia Palace lies just east of the Kasbah, beside the Mellah, and it was built in the 1860s to 1900 by the grand vizier Ba Ahmed. The palace has about 150 rooms, with gardens, courtyards and painted ceilings, and it is one of the most visited palaces in Marrakech.
The Mellah and the Bahia Palace pair well with a visit to the Kasbah, because they lie within a short walk of each other. The Mellah is best in the morning, when the shops open and the streets are quiet, and the Bahia Palace is best in the late afternoon, when the light turns the gardens gold. The Mellah has restaurants and shops that sell spices, jewellery and crafts, and it is a good place to buy a souvenir.
The Bahia Palace charges an entrance fee, and it takes about an hour to see. Together the Mellah and the Bahia Palace show the history of Marrakech in the 19th century, and they complete a visit to the Kasbah.
Frequently Asked Questions
Where is the Kasbah in Marrakech?
The Kasbah lies south of Jemaa el-Fna, inside the ramparts, reached through Bab Agnaou. The royal palace inside is closed to visitors.
Is the Kasbah a World Heritage property?
The Kasbah is not listed separately, but it stands inside the Medina of Marrakesh, ref 331. Ait Ben Haddou, ref 444, is nearest.
What is the best time to visit the Kasbah?
Mornings are best, with cool air and quiet tombs. Spring and autumn bring the best weather in Marrakech.
How long do I need in the Kasbah?
Half a day covers the Kasbah: an hour for the tombs and an hour for El Badi. Add an hour for Bahia Palace.
Can I visit the royal palace in the Kasbah?
The royal palace, Dar el Makhzen, is still used by the king and stays closed. Visit Bahia Palace or El Badi instead.
What is the Mellah next to the Kasbah?
The Mellah, founded in 1558, is the Jewish quarter east of the Kasbah walls. Fez, from 1438, holds the oldest mellah in Morocco.
Verified
- The Kasbah of Marrakech is the old royal quarter in the south of the medina, with Q-ID Q94740490, P31 quarter, coordinates 31.6164/−7.9869, matching the registry — Wikidata API, checked 23 November 2026.
- The Medina of Marrakesh was inscribed by UNESCO in 1985 under ref 331, criteria (i)(ii)(iv)(v), over 700 hectares, founded 1070 to 1072 by the Almoravids, with the Koutoubia minaret 77 metres high — whc.unesco.org/en/list/331/, checked 23 November 2026.
- The Kasbah is named in the UNESCO text for ref 331, but it is not a separately listed component of the property — whc.unesco.org/en/list/331/, checked 23 November 2026.
- Bab Agnaou was built around 1185, and it is the main gate of the Kasbah — Wikipedia Kasbah of Marrakesh, checked 23 November 2026.
- El Badi Palace was built from 1578 by the Saadian sultan Ahmad al-Mansur, and it was stripped by the Alaouite sultan Moulay Ismail over 12 years for Meknes — Wikipedia El Badi Palace, checked 23 November 2026.
- The Saadian Tombs were sealed around 1697 and rediscovered in 1917, and they hold 66 members of the Saadian dynasty — Wikipedia Saadian Tombs, checked 23 November 2026.
- The Mellah of Fez was established in 1438 and is the oldest and first mellah in Morocco, not the Mellah of Marrakech, which was founded in 1558 — the Vietnamese article calls the Marrakech mellah the oldest in Morocco, which is wrong, checked 23 November 2026.
- The nearest separately listed World Heritage property is Ait Ben Haddou, ref 444, 102.7 kilometres away in a straight line — haversine from Wikidata coordinates, checked 23 November 2026.
- Ait Ben Haddou was inscribed in 1987 under ref 444, criteria (iv)(v), and its oldest constructions are not earlier than the 17th century — whc.unesco.org/en/list/444/, checked 23 November 2026.
Sources
- Wikidata, Q94740490 Kasbah of Marrakech — wikidata.org/wiki/Q94740490 — checked 23 November 2026.
- UNESCO, Medina of Marrakesh, ref 331 — whc.unesco.org/en/list/331/ — checked 23 November 2026.
- UNESCO, Ksar of Ait-Ben-Haddou, ref 444 — whc.unesco.org/en/list/444/ — checked 23 November 2026.
- Wikipedia, Kasbah of Marrakesh — en.wikipedia.org/wiki/Kasbah_of_Marrakesh — checked 23 November 2026.
- Wikipedia, Mellah of Marrakesh — en.wikipedia.org/wiki/Mellah_of_Marrakesh — checked 23 November 2026.
- Wikipedia, Mellah of Fez — en.wikipedia.org/wiki/Mellah_of_Fez — checked 23 November 2026.
Unverified
- The Kasbah mosque was damaged by a gunpowder explosion in the middle of the 16th century, but the sources give the 1560s or the 1570s, so this article gives the middle of the century and records the variant here.
- The Mellah of Marrakech is dated to 1558 in most sources, but some sources give 1557, so this article uses 1558 and records the variant here.
- The exact boundaries of the royal palace area inside the Kasbah are not published, so this article does not give a figure for the palace grounds.
- The number of rooms in the Bahia Palace is given as about 150 in most sources, but the exact count varies, so this article gives the rounded figure and records the variant here.
- The hours of the Saadian Tombs and El Badi Palace change with the season, so travellers should check them directly before a visit.
Illustrations
- Hero: A view of Kasbah of Marrakech. Free image: https://upload.wikimedia.org/wikipedia/commons/2/23/A17_-_Marrakech%2C_Kasbah.jpg — CC BY-SA 4.0.
- In body, Kasbah of Marrakech: Marrakech kasbah. Free image: https://upload.wikimedia.org/wikipedia/commons/6/68/Marrakech_kasbah_%28870731522%29.jpg — CC BY 2.
- In body, Kasbah of Marrakech: An outcrop of wall with stork’s nest in the Kasbah district of Marrakesh, with the minaret of the Kasbah Mosque visible. Free image: https://upload.wikimedia.org/wikipedia/commons/6/61/Storks_and_walls_in_marrakesh_kasbah_P4020379_%2825939151193%29.jpg — CC BY-SA 2.
