Medina of Marrakesh — The Walled Old City of the Red City

The medina of Marrakesh is a walled maze of lanes, souks and courtyards. Its ramparts have enclosed the old city since the eleventh century.

The medina of Marrakesh is the historic heart of Marrakech, the Red City of Morocco, and it is one of the oldest and largest old towns of North Africa. Its walls of red earth enclose 700 hectares of lanes, markets, mosques, palaces and squares, and the whole quarter is still alive, with craftsmen, shopkeepers, students and visitors sharing the same narrow streets. UNESCO inscribed the medina in 1985, and its square, Jemaa el-Fna, is listed as intangible heritage, but the medina is not a museum: it is a city that works, cooks, trades and prays every day, and the best way to know it is to walk it slowly, with the tower of Koutoubia always in sight to find the way back.

Quick Facts

  • Old city: Medina of Marrakesh, the walled historic centre of Marrakech
  • Founded: Around 1070, under the Almoravids, as the capital of their empire
  • Area: 700 hectares inside the red earth ramparts
  • Central square: Jemaa el-Fna, the heart of the medina and intangible heritage
  • Main mosque: Koutoubia, with a minaret 77 metres high, finished around 1195
  • Main college: Ben Youssef Madrasa, rebuilt 1564 to 1565, once the largest in the Maghreb
  • Jewish quarter: The Mellah, founded in 1558 beside the royal palace
  • New town: Guéliz, built by the French from 1913, west of the medina
  • UNESCO listing: Medina of Marrakesh, inscribed 1985, ref 331

Geography of the Medina of Marrakesh

The medina of Marrakesh lies on the Haouz plain, at about 460 metres above sea level, between the Atlantic coast to the west and the Atlas Mountains to the south. From many corners of the old city the snow-covered peaks of the Atlas can be seen in winter, and the red colour of the earth, the walls and the houses is what gave Marrakech its name as the Red City. The plain is dry and hot, with palm groves and olive gardens around the city, and the water that feeds the city has always come from the Atlas, through wells, canals and underground channels. The medina is enclosed by walls of rammed red earth, and those walls still mark the boundary of the old city today, with great gates leading into the maze of lanes.

Jemaa el-Fna lies in the south-west of the medina of Marrakesh, and it is the point from which the whole quarter is best understood. From the square the lanes run in every direction: to the north lie the souks, to the east the Ben Youssef quarter with its college and its mosque, and to the south the Kasbah, with the Saadian Tombs and the Bahia Palace, and the Mellah, the old Jewish quarter. The tower of Koutoubia stands beside the square, 77 metres high, and it is the compass of the medina, because the lanes have no long straight lines, only a network of twisting alleys, some of them barely wide enough for one person, and the tower is the one thing that can always be seen above the roofs. The structure of the lanes is not an accident: the narrow, shaded streets protect the city from the fierce sun and the hot wind of the plain.

The souks of the medina of Marrakesh fill most of the northern half of the old city, joined into a covered maze. Souk Semmarine is the main spine, the longest and busiest of the markets, with shops selling cloth, clothing and leather pressed close together. From the spine branch the craft souks, each with its own trade: the coppersmiths with their hammering, the dyers with their vats of colour, the tanners with their leather, and the spice sellers with their mounds of yellow, red and brown powder.

Each souk was once the home and workplace of a guild, with forges, dye works and storerooms behind the shops, and the craftsmen still work by hand, much as they did centuries ago. A walk through the souks is a walk through sound and smell as much as through sight, and the noise of the hammers and the scent of leather and spice are part of the medina itself.

The eastern part of the medina of Marrakesh holds its religious and scholarly buildings, with the Ben Youssef Mosque and its college, and the southern part holds the Kasbah, the old citadel of the dynasties, with the Saadian Tombs and the Bahia Palace, and the Mellah beside the royal palace. Between these quarters lie residential streets of houses with inner courtyards, high walls and carved wooden doors, mostly closed to the street, and the medina also holds small gardens and green spaces, such as the Koutoubia Gardens around the great mosque, where people come to rest in the afternoon. The medina has no parks in the modern sense, but it has courtyards, fountains and shaded corners, and the gardens of the Agdal and the Menara, outside the walls to the south and west, are part of its setting.

The climate of the medina of Marrakesh is semi-arid, with very hot summers and mild winters, and sunshine almost all year round. Daytime temperatures often reach 35 to 45 degrees in summer and 18 to 25 degrees in winter, with very little rain. Spring, from March to May, and autumn, from September to November, are the two best seasons to walk the medina, because the air is cool and the souks are not stifling, and visitors in summer should walk in the early morning or the late afternoon, when the sun has softened and the square begins to fill with food stalls. The medina is close to the rest of the city, and visitors can walk from the old city to the new town of Guéliz in the west, to the Agdal gardens in the south, and to the Palmeraie, the great palm grove, to the north, so the medina is a good starting point for every journey in Marrakech, from the Agafay desert to the Atlas.

History of the Medina of Marrakesh

The medina of Marrakesh was founded around 1070, when the Almoravid leader Abu Bakr ibn Umar chose the Haouz plain for a new capital. The Almoravids were warriors and missionaries from the Sahara, and Marrakech quickly became the centre of an empire that stretched from West Africa to the Iberian Peninsula. Under Yusuf ibn Tashfin, the successor of Abu Bakr, the city was given walls, wells and water channels, and a dry plain became a busy capital. From the beginning the medina of Marrakesh was a city of trade, on the caravan routes that joined the Sahara to northern Morocco and Europe, and the souks that still fill the northern half of the old city are the direct descendants of those first markets.

The twelfth century was the Almohad period, when Abd al-Mu’min captured Marrakech in 1147 and made it the capital of the Almohad empire. The Almohads pulled down many Almoravid buildings and rebuilt in their own style, among them the Koutoubia Mosque, founded in 1147, with its minaret finished around 1195 under Yaqub al-Mansur. The gate of Bab Agnaou, the main entrance to the Kasbah, was also built in the late twelfth century, with fine stone carving that can still be seen today. Under the Almohads the medina of Marrakesh became one of the great centres of learning and architecture of the western Islamic world, with mosques, colleges and libraries, and the Koutoubia tower became the model for the towers of Seville and Rabat.

After the fall of the Almohads, the medina of Marrakesh went through centuries of change, with the Marinid and Wattasid dynasties contesting power, and the city lost its place as capital to Fez for long periods. The souks and the old quarters kept working, however, and Marrakech stayed the commercial centre of southern Morocco, with caravans from Timbuktu still arriving with gold, salt, leather and slaves, and the markets of the medina still the meeting place of traders from across the Sahara. Few great buildings survive from this period, but the structure of the lanes and the souks stayed as it was, and the medina kept its shape through the centuries of decline.

The sixteenth century brought a revival under the Saadians, and Sultan Ahmad al-Mansur, who ruled from 1578 to 1603, grew rich on the trade in sugar and gold from Sudan, and spent that wealth on the medina. The Saadian Tombs were built in the late sixteenth century as the resting place of the royal family, with marble, carved plaster and cedar wood. The Ben Youssef Madrasa was rebuilt from 1564 to 1565, and it became the largest Islamic college in the Maghreb, with 130 student rooms around a courtyard with a pool, housing up to 800 students.

The Mellah, the Jewish quarter, was founded in 1558 beside the royal palace, and the Jewish community played a large part in the trade of the medina. The Saadian period gave the medina many of its finest buildings, and its influence can still be seen in the stucco, the tiles and the carved wood of the old city.

The seventeenth and eighteenth centuries, under the Alaouite dynasty, brought further building and decoration to the medina of Marrakesh, although the centre of power moved to Fez and Meknes. The Bahia Palace was built in the late nineteenth century, under the grand vizier Ba Ahmed, and it is one of the largest palaces of the medina, with courtyards, orange gardens and rooms decorated with plaster, wood and tiles. Rich families built large houses with inner courtyards, called riads, and many of those houses are now small hotels.

In 1912 Morocco became a French protectorate, and the French built the new town of Guéliz to the west of the medina, but the old city kept its structure and its way of life. After independence in 1956, the medina stayed the commercial and craft centre of the city, even as many wealthy families moved to the new town.

In 1985 UNESCO inscribed the Medina of Marrakesh on the World Heritage List, recognising the old city as one of the great historic towns of the Islamic world, and in 2001 the square of Jemaa el-Fna was proclaimed a Masterpiece of the Oral and Intangible Heritage of Humanity, and in 2008 it entered the Representative List of the Intangible Cultural Heritage. On 8 September 2023 a strong earthquake struck the region, cracking the minaret of Koutoubia and damaging many old houses in the medina, and the tower was repaired and reopened in March 2024, with other buildings still being restored. Today the medina of Marrakesh is home to tens of thousands of people, and it is the most important tourist destination of Morocco, a living city that is also a World Heritage property.

Artisan coloring a lamp, Medina Marrakesh (Morocco, 2024)

Artisan coloring a lamp, Medina Marrakesh (Morocco, 2024) — CC BY-SA 4

Travel to the Medina of Marrakesh

Travel in the medina of Marrakesh is best done on foot, with a morning for the souks and an afternoon for the historic buildings. Visitors should start at Jemaa el-Fna, pass through the gate into Souk Semmarine, and wander through the craft souks before returning to the square in the afternoon. The medina is easy to get lost in, so the tower of Koutoubia should be kept in sight, because it can be seen from many places in the old city, and many visitors hire a local guide for their first walk into the souks, because the guide knows the way and helps with bargaining. A guide is also useful for the history of the buildings, because the medina has few signs, and the stories of the colleges, the tombs and the palaces are best told by someone who knows them.

Jemaa el-Fna is the place that no visitor to the medina of Marrakesh should miss. By day the square holds orange juice sellers, storytellers, snake charmers and small stalls, and in the evening it becomes a vast open-air restaurant, with dozens of grills, bright lights and live music. Visitors should try the fresh orange juice and the grilled food of the square, but they should ask the price before sitting down. From the square, visitors can climb to the rooftop of a cafe to watch the sunset over the medina and the tower of Koutoubia, and the view from above, with the roofs, the minarets and the Atlas in the distance, is one of the finest in Morocco.

Shopping in the souks of the medina of Marrakesh is an experience, not only a transaction, and bargaining is part of the culture. The first price is often much higher than the final price, and visitors should start by offering about one third of the asking price, with a friendly manner. The things to buy are leather goods, Berber carpets, copper lanterns, spices and argan oil, but quality should be checked before buying, because the souks hold both fine work and cheap copies.

Visitors should carry cash, because many small shops do not take cards, and they should keep their belongings close in the crowds. The morning is the best time to shop, when the souks have just opened and are not yet crowded.

The medina of Marrakesh holds many riads, traditional houses with inner courtyards that have been turned into small hotels and guesthouses. Staying in a riad is the best way to feel the old city, because visitors sleep in a historic house, eat breakfast on the rooftop and hear the call to prayer from the mosques. Visitors should choose a riad near Jemaa el-Fna or near the main souks, so that walking is easy, but they should know that cars cannot enter many lanes of the medina, and luggage is often carried by hand cart from the nearest gate. The high season of the medina is spring and autumn, when the weather is most pleasant, and rooms should be booked early for holidays.

The food of the medina of Marrakesh gathers around Jemaa el-Fna and the lanes nearby, with tagine, couscous, pastilla and harira soup. Visitors should try the grilled bread, the skewered meat and the fresh orange juice, the street foods of the old city, and many small restaurants have rooftops with views of the square or the tower. Visitors should drink bottled water, and wash their hands before eating, because many dishes are eaten by hand, as is the local custom. The cafes of the square are also a good place to rest, and the rooftop terraces are the best place to watch the evening come down over the medina.

Marrakesh, Morocco

Marrakesh, Morocco — CC BY 2

Notable Places in the Medina of Marrakesh

Jemaa el-Fna. The square sits at the south-west edge of the medina, under the shadow of the Koutoubia minaret, and it has been the city’s meeting place since the Almoravids founded Marrakech. Through the day it fills with juice stalls, henna artists and snake charmers, while storytellers gather listeners in circles on the open ground. After sunset the square turns into a field of food stalls, with smoke rising from the grills and crowds moving between the vendors until late at night.

Koutoubia. The largest mosque of Marrakech stands beside the square, with a minaret 77 metres high that can be seen across the city. The mosque was founded in 1147 and its tower was finished around 1195, and the tower became the model for the Giralda of Seville and the Hassan Tower of Rabat. Non-Muslims may not enter the prayer hall, but the tower and the gardens can be admired from outside.

Ben Youssef Madrasa. The first school on this site was founded around 1350 by the Marinid sultan Abu al-Hasan, and it takes its name from the neighbouring Ben Youssef Mosque, named for the Almoravid sultan Ali ibn Yusuf. At its height the college housed up to 900 students, who studied religious sciences, philosophy, medicine and mathematics in small cells around six inner courtyards. The school taught for almost five centuries until it closed in 1960, and after reopening to visitors in 1982 its cedar entrance lintel still carries the inscription that it was built for knowledge and for prayer.

Saadian Tombs. The western mausoleum holds the Hall of Twelve Columns, a chamber about ten metres square and twelve metres high where twelve Carrara marble columns stand in groups of three beneath a gilded cedar muqarnas dome. At its centre lies Sultan Ahmad al-Mansur, who died in 1603, flanked by his son Moulay Zidan and his grandson, and the project began with the burial of his mother Lalla Mas’uda in 1591. The site holds about 56 marble tombstones and around a hundred more graves in coloured tile, and the marble arrived from Italy in exchange for Saadian sugar, traded weight for weight.

Bahia Palace. The palace south of the medina was built in the late nineteenth century for the grand vizier Ba Ahmed, and it is one of the largest palaces of the old city. Its courtyards, orange gardens and decorated rooms show the wealth of its builder, and the palace can be visited together with the Saadian Tombs in a single morning. The palace stands near the Mellah, the old Jewish quarter.

The Souks and the Mellah. The souks of the medina form a living market, with Souk Semmarine as the main spine and craft souks branching off it in every direction. The Mellah, founded in 1558, lies to the south, with wooden balconies, spice shops and quieter lanes than the main souks. A walk through the Mellah shows another face of the medina, and the old Jewish cemetery is one of its landmarks.

Frequently Asked Questions

Where is the medina of Marrakesh?

In central Marrakech, Morocco, on the Haouz plain at the foot of the Atlas Mountains.

Is the medina of Marrakesh a UNESCO site?

Yes, it was inscribed in 1985, and Jemaa el-Fna is also listed as intangible heritage.

Is it easy to get lost in the medina of Marrakesh?

Very easy: the lanes twist alike, so use the 77-metre Koutoubia tower to find your way.

Do you need to bargain in the souks?

Yes, haggling is expected; start near one third of the first price, politely.

What is the best time to visit the medina of Marrakesh?

Spring and autumn, when the lanes stay cool enough for long walks.

What is a riad?

A traditional house around a courtyard, many now run as small hotels inside the medina.

Verified

  • The medina of Marrakesh was founded around 1070 under the Almoravids, and the city was walled and given water channels under Yusuf ibn Tashfin.
  • The property was inscribed in 1985 as ref 331, under criteria (i)(ii)(iv)(v), and it covers 700 hectares inside the ramparts.
  • The tower of Koutoubia, 77 metres high, was finished around 1195, and it is the landmark that visitors use to find their way through the lanes.
  • The Ben Youssef Madrasa was rebuilt in 1564 and 1565, and it was the largest Islamic college in the Maghreb, with 130 student rooms for up to 800 students.
  • The Mellah was founded in 1558 beside the royal palace, and the Saadian Tombs were rediscovered in 1917 after centuries of neglect.
  • Jemaa el-Fna was proclaimed a Masterpiece of the Oral and Intangible Heritage in 2001 and entered the Representative List in 2008, under code 00014.
  • The gate of Bab Agnaou was built in the late twelfth century, and the new town of Guéliz was built by the French from 1913, west of the medina.
  • The earthquake of 8 September 2023 damaged old houses across the medina, and the minaret of Koutoubia was repaired and reopened in March 2024.

Sources

  • UNESCO, Medina of Marrakesh — https://whc.unesco.org/en/list/331/ (checked 23 November 2026)
  • UNESCO, Morocco country page — https://whc.unesco.org/en/statesparties/ma (checked 23 November 2026)
  • UNESCO Intangible Heritage, Cultural space of Jemaa el-Fna Square — https://ich.unesco.org/en/RL/cultural-space-of-jemaa-el-fna-square-00014 (checked 19 November 2026)
  • Wikipedia, Medina of Marrakesh (checked 19 November 2026)
  • Wikipedia, Ben Youssef Madrasa (checked 23 November 2026)
  • Wikidata API, Medina of Marrakech Q966780 (checked 23 November 2026)

Unverified

  • The exact length of the ramparts around the medina, because sources give different figures.
  • The current population of the medina quarter, because the latest census does not separate the old city.
  • Opening hours and ticket prices for the Ben Youssef Madrasa, the Saadian Tombs and the Bahia Palace, because they change with the season and were not verified on the official sites.
  • The exact day of the reopening of Koutoubia in March 2024 has not been confirmed on an official site.

Illustrations

  • Hero: Medina of Marrakesh. Free image: https://upload.wikimedia.org/wikipedia/commons/8/88/Medina_of_Marrakesh_Sept2022_089.jpg — CC BY-SA 4.
  • In body, Medina of Marrakesh: Artisan coloring a lamp, Medina Marrakesh (Morocco, 2024). Free image: https://upload.wikimedia.org/wikipedia/commons/1/15/Artisan_coloring_a_lamp%2C_Medina_Marrakesh_%28Morocco%29.jpg — CC BY-SA 4.
  • In body, Medina of Marrakesh: Marrakesh, Morocco. Free image: https://upload.wikimedia.org/wikipedia/commons/f/fa/Marrakesh%2C_Morocco_%288141914885%29.jpg — CC BY 2.