Marrakech: The Red City at the Foot of the Atlas
Marrakech is a red city on the Haouz plain, beneath the High Atlas. Founded about 1070, it has been an imperial capital for almost a thousand years.
Marrakech is a city that was built three times, and all three cities are still standing in the same place. The Almoravids founded it in the desert and gave it its walls, the Almohads gave it the Koutoubia minaret that still rules the skyline, and the Saadians gave it the madrasa, the tombs and the ruined palace that are the finest buildings in Morocco. The three layers are not buried under one another, they stand side by side in the medina, so that a walk of ten minutes can cross four centuries, and the square at the centre of it all, Jemaa el-Fnaa, has never stopped working, from the caravans of the eleventh century to the storytellers of today. This guide follows the red walls from the gate of Bab Agnaou to the gardens of the Menara, explains how three dynasties made one city, and tells what the earthquake of 8 September 2023 did to the old town and how quickly the city came back.
Quick Facts
- Founded: about 1070, by the Almoravid leader Abu Bakr ibn Umar
- Elevation: 468 m above sea level, on the Haouz plain
- Population: 1,002,697 in the city by the 2024 census, with 1,085,330 in the metro area
- Position: about 240 km by road from Casablanca, at the foot of the High Atlas
- The medina: about 700 ha of walled old city
- The minaret: the Koutoubia, 77 m high, the symbol of the city
- World Heritage: the Medina of Marrakesh, UNESCO ref 331, inscribed 1985
- The square: Jemaa el-Fnaa, proclaimed a Masterpiece of the Oral and Intangible Heritage of Humanity in 2001, on the Representative List since 2008
- Languages: Arabic and Tamazight, with French widely used in tourism
- Wikidata: Q101625
Geography of Marrakech
Marrakech stands on the Haouz plain, a flat and dry expanse between the Jebilet hills to the north and the High Atlas to the south, and the position of the city is the reason it exists at all. The plain is the meeting point of the caravan routes that came from the Sahara to the south, from the Atlantic coast to the west and from the mountains to the east, and the city grew where the routes crossed, at the foot of the pass that leads over the Atlas to the desert. The Atlas rises to the south in a wall of snow-capped peaks in winter, and the sight of the snow from the roof terraces of the medina is one of the most famous views in Morocco, because the city itself is hot and dry and the mountains are cold and white. The Jebilet hills to the north are low and barren, and they hold the old quarries that supplied the stone for the walls, while the plain itself is watered by the Tensift river to the north and by the khettara, the underground channels that the Almoravids dug to bring water from the Atlas to the gardens and the palaces.
The climate of Marrakech is semi-arid, with hot and dry summers, cool winters and very little rain. The summer temperature can pass 40 degrees, and the heat is dry rather than humid, so that the evenings are cooler than the days, especially when the wind comes down from the Atlas. The winter brings clear skies and cold mornings, with the temperature falling close to freezing at night, and the rain falls mostly in the winter, in short bursts that fill the streets and then vanish.
The city is built for this climate, with thick walls of earth, narrow lanes that give shade, and courtyards that are cool in the middle of the day, and the houses of the medina are built around a courtyard with a fountain, so that the family lives in the shade while the sun beats on the roof. The best months for a visit are the spring and the autumn, when the days are warm and the nights are cool, and the summer is the time for the mountains rather than for the city.
Marrakech is two cities in one, and the line between them is the wall of the medina. Inside the wall is the old city, a maze of narrow lanes, souks, palaces and mosques, with the Koutoubia minaret at its western edge and Jemaa el-Fnaa at its centre, and the whole of the medina covers about 700 ha, which makes it one of the largest old towns in North Africa. Outside the wall to the west is Gueliz, the new town built by the French during the protectorate, with wide avenues, cafes and shops, and the Jardin Majorelle stands in Gueliz, a garden of cactus and bamboo around a blue villa.
To the west of the city lies the Palmeraie, a great palm grove that is said to have been planted by the Almoravids when the city was founded, and today it holds the resorts and the golf courses of the city, with the Atlas behind them. The airport, Menara, lies about six kilometres south-west of the medina, and the road from the airport to the city runs through the new town and past the walls, so that the first sight of Marrakech for most visitors is the red wall and the minaret behind it.
The water of Marrakech is the hidden geography of the city, and it has shaped the gardens more than any other single thing. The khettara system, a network of underground channels that bring water from the foothills of the Atlas, was dug in the twelfth century and is still in use in places, and it feeds the gardens of the Menara and the Agdal, the great walled gardens that the Almohads and the Saadians built to the south and the west of the city. The Menara Gardens hold a large basin of water and a pavilion from the nineteenth century, and the Agdal holds orchards of olive and orange trees behind walls that stretch for kilometres, and both gardens were built as places of pleasure and as reserves of water for the city in time of siege. The palmeraie is watered by the same system, and the palms that give the city its green edge are not a natural forest but a planted one, kept alive by the channels that run under the plain.
The plain around Marrakech is a land of argan trees, of olive groves and of wheat, and the villages of the Haouz are built of the same red earth as the city. The argan tree, which grows only in the south-west of Morocco, is the source of the oil that is sold in the souks, and the cooperatives of women who press the oil are a part of the economy of the region. The Atlas to the south holds the villages of the Berbers, with their terraced fields and their kasbahs of mud brick, and the pass of Tizi n’Tichka, which climbs to 2,260 m, is the road from Marrakech to the Sahara, with the kasbah of Ait-Ben-Haddou on the far side of the mountains. The desert to the south-east is a day’s drive from the city, and the road to it runs through the Atlas and down into the Draa valley, which is why Marrakech is the starting point for the desert tours that are the most popular trips from the city.

lamp maker, Medina of Marrakech — CC BY-SA 4
History of Marrakech
Marrakech was founded in about 1070 by the Almoravids, a dynasty of Berber warriors from the Sahara who built an empire that stretched from the desert to the south of Spain. The founder was Abu Bakr ibn Umar, the Almoravid leader, and the city was built as a capital on the Haouz plain, with walls of red earth and a great mosque, and the name of the city is thought to come from the Berber words for the land of God, though the origin is still argued. The Almoravids made Marrakech the capital of an empire that held the whole of Morocco and the south of Spain, and the city grew quickly, with palaces, mosques and markets, and the first of the great gardens, the Menara, was laid out in the twelfth century. The Almoravid city was built of earth and brick, and almost nothing of it survives above ground, except the Koubba el-Baroudiyyin, a small domed pavilion that is the oldest building in the city, and the walls that still ring the medina follow the line of the Almoravid wall.
The Almohads took Marrakech in 1147, and they rebuilt the city in stone, and the buildings they left are the ones that define the skyline today. The Koutoubia mosque was begun in 1147 and rebuilt in about 1158, and its minaret, 77 m high, was completed in about 1195 under the caliph Yaqub al-Mansur, and it is the model for the minarets of the Giralda in Seville and the Hassan Tower in Rabat. The Almohads built the walls and the gates of the city, including Bab Agnaou, the great gate that led to the kasbah, and they laid out the kasbah itself, a city within the city, with its own mosque and its own palace, to the south of the medina. The Almohad period was the golden age of Marrakech, when the city was the capital of an empire that held Morocco and the south of Spain, and the scholars and the poets of the court made it one of the great cities of the Islamic world.
The Saadians took Marrakech in the sixteenth century, and they gave the city its finest buildings, though their dynasty lasted only a century. The Ben Youssef Madrasa, the Koranic school beside the mosque of Ben Youssef, was rebuilt and completed in 1564 and 1565 under the sultan Abdallah al-Ghalib, and it holds 130 rooms around a courtyard of carved cedar and marble, and it was the largest madrasa in Morocco. The Saadian Tombs, built in the sixteenth century for the sultans and their families, were walled up after the dynasty fell and were only rediscovered in 1917, and the Hall of the Twelve Columns, with its marble columns and its carved cedar ceiling, is one of the most beautiful rooms in Morocco. The El Badi Palace, built in the late sixteenth century under Ahmad al-Mansur, was once the grandest palace in the country, with pavilions of gold and marble, and it was stripped of its riches by the sultan Moulay Ismail, who carried the marble to Meknes, so that today it stands as a great empty courtyard of ruined walls, with storks nesting on the towers.
The French protectorate, which began in 1912, changed the shape of Marrakech without touching the medina. The French built Gueliz, the new town to the west of the walls, with wide avenues and cafes, and they built the roads and the railway that joined the city to Casablanca and to the coast, and the city became the centre of the south, with the medina as the old town and Gueliz as the new. Morocco became independent in 1956, and Marrakech became the tourist capital of the country, with the medina as its main attraction and the Atlas and the desert as its hinterland. The city grew beyond its walls, with new districts to the north and the west, and the population passed a million, and the medina, which had been a living city, became a place of riads and guesthouses, with the old houses restored as hotels and the souks as the market for the visitors.
The earthquake of 8 September 2023 was the greatest disaster to strike Marrakech in living memory, and it tested the city in a way that no siege had. The earthquake measured 6.8, and its epicentre lay in the High Atlas, about 72 km south-west of the city, in the province of Al Haouz, and it killed nearly three thousand people in the mountains, where the villages of mud brick collapsed. In the medina, the old walls and some of the historic buildings were damaged, and the minaret of the Kharbouch mosque on Jemaa el-Fnaa was cracked, and the houses of the old quarters were shaken, but the main monuments stood, and the Koutoubia, the Ben Youssef Madrasa and the palaces survived with little damage. The city reopened to visitors within days, and the repair of the medina began at once, with the craftsmen of the city rebuilding the walls and the houses in the same earth and brick that had been used for nine centuries, and the earthquake is now a part of the history of Marrakech, a reminder that the city is built of earth and that the earth can move.
Travel to Marrakech
Marrakech is reached by air through Menara Airport, about six kilometres south-west of the medina, and the airport receives direct flights from Europe, from the Gulf and from the cities of Morocco, with the flight from Paris taking about three and a half hours and the flight from Madrid taking about two hours. The taxi ride from the airport to the medina takes about twenty minutes, and the fare should be agreed before the ride, or the visitor can take the bus that runs from the airport to the square of Jemaa el-Fnaa. The flight from Lisbon takes about two hours as well, and the low-cost airlines serve the route through the winter.
The train from Casablanca takes about two and a half hours, and the railway station stands in Gueliz, a short taxi ride from the medina, and the train from Tangier takes about five hours, with the line running through Casablanca. The bus from the coast and from the Atlas also arrives in the city, and the road from Casablanca is a motorway that takes about two and a half hours by car.
The best time to visit Marrakech is the spring and the autumn, when the days are warm and the nights are cool, and the Atlas is clear and the gardens are green. The months of March to May and September to November bring the best weather for walking the medina, and the summer, from June to August, brings heat that can pass 40 degrees, so that the city is best seen in the morning and in the evening, with the middle of the day spent in the shade of a courtyard or in the cool of a garden. The winter brings clear skies and cold mornings, with the temperature falling close to freezing at night, and the snow on the Atlas is at its best in the winter, though the rain can fall in short bursts. The city is busy all year, and the square of Jemaa el-Fnaa is at its liveliest in the evening, when the food stalls open and the storytellers and the musicians take their places, so that the visitor should plan to be in the square after sunset.
The medina of Marrakech is a place for walking, and the visitor should expect to get lost, because the lanes are narrow and the signs are few, and the way to the square is the way that everyone knows. The souks are the market of the city, with the lanes divided by trade, so that the dyers, the leather workers, the metal workers and the spice sellers each have their own quarter, and the visitor should bargain for everything, because the first price is never the last. The petit taxis of the city are small and cheap, and they run on the meter, and the calèches, the horse-drawn carriages, wait on the square and by the Koutoubia for visitors who want a ride around the walls. The riads of the medina are the old houses of the city, built around a courtyard with a fountain, and many of them are now guesthouses, so that the visitor can sleep in the old town and wake to the sound of the call to prayer, while the hotels of Gueliz offer the wider rooms and the swimming pools of the new town.
The food of Marrakech is the food of the square, and the evening in Jemaa el-Fnaa is a meal in itself. The food stalls open at sunset, with grills of meat and fish, with tagines and with harira soup, and the visitor should eat where the locals eat, at the stalls with the longest queues, and should drink the mint tea that is poured from a height into small glasses. The pastilla, a pie of pigeon and almonds dusted with sugar, is the dish of the city, and the tanjia, a pot of meat cooked slowly in the ashes of the hammam, is the dish of the working men of the medina.
The restaurants of Gueliz offer the food of the new town, with French and Moroccan dishes, and the cafes of the square offer a view of the evening, with the smoke rising from the grills and the lights of the stalls below. The visitor should carry cash in dirhams for the souks and the stalls, though the cards are taken in the hotels and the larger restaurants, and the water should be bought in bottles, because the tap water of the city is not for drinking.
Notable Places in Marrakech
- Jemaa el-Fnaa. The great square of Marrakech, whose name is often read as the assembly of the dead, from the public executions that were held there in the past. The square was the meeting place of the caravans that came from the Sahara and from the Atlas, and it is still the centre of the medina, with the Koutoubia minaret at its western edge.
- The Koutoubia Mosque. The great mosque of Marrakech, with a minaret 77 m high that rules the skyline of the medina, and the gardens around it where the people of the city walk in the evening. The mosque is not open to non-Muslims, and the view that matters is the view of the minaret from the square, which is the symbol of the city.
- The Ben Youssef Madrasa. The Koranic school beside the mosque of Ben Youssef, with a courtyard of carved cedar and marble and a prayer hall of stucco and tile. The students lived in 130 small rooms around the courtyard, and the madrasa was the largest in Morocco, and the carving of the courtyard is the finest work of the Saadian period.
- The Saadian Tombs. The tombs of the Saadian sultans and their families, built in the sixteenth century and walled up after the dynasty fell, then rediscovered in 1917. The Hall of the Twelve Columns, with its marble columns and its carved cedar ceiling, is one of the most beautiful rooms in Morocco.
- The El Badi Palace. The palace built in the late sixteenth century under Ahmad al-Mansur, once the grandest palace in Morocco, with pavilions of gold and marble. It was stripped of its riches by the sultan Moulay Ismail, and today it stands as a great empty courtyard of ruined walls, with storks nesting on the towers and the Atlas behind it.
- The Bahia Palace. The palace built in the late nineteenth century for the grand vizier Ba Ahmed, with courtyards of marble, ceilings of painted cedar and gardens of orange trees. The palace is the finest building of the Alaouite period in Marrakech, and it shows the craft of the city at its height, with the zellij tiles and the carved plaster of the workshops.
- The Jardin Majorelle. The garden created in the 1920s and 1930s by the French painter Jacques Majorelle, with cactus, bamboo and palms around a villa painted in a deep blue that is now known as Majorelle blue. The garden was bought in 1980 by the designer Yves Saint Laurent, and it holds the Berber Museum and the memorial to the designer.
- The Menara Gardens. The gardens laid out in the twelfth century under the Almohads, to the west of the city, with a great basin of water and a pavilion from the nineteenth century. The gardens are planted with olive trees, and the basin reflects the Atlas, which is the most famous view in Marrakech after the Koutoubia.
- The Souks. The market lanes of the medina, divided by trade, with the dyers, the leather workers, the metal workers and the spice sellers each in their own quarter. The souks are roofed with slats of wood that let in the light, and they are the busiest place in the city, with the goods of the whole of the south of Morocco for sale.
- Bab Agnaou. The great gate of the kasbah, built in the twelfth century under the Almohads, with a carved arch of stone that is one of the finest pieces of Almohad work in the city. The gate led to the kasbah, the city within the city, and it still stands at the southern edge of the medina, with the royal palace behind it.

Colourful slippers in a shop in Marrakesh, Morocco — CC BY-SA 3
Frequently Asked Questions
When was Marrakech founded?
Marrakech was founded in about 1070 by the Almoravid leader Abu Bakr ibn Umar, as the capital of an empire that stretched from the Sahara to the south of Spain. UNESCO gives the date as 1070 to 1072, and the city has been an imperial capital, in one form or another, for almost a thousand years.
What is Jemaa el-Fnaa?
The square is best seen after sunset, when the food stalls open and the smoke rises from the grills, and the storytellers, the musicians and the snake charmers take their places. The visitor should eat at the stalls with the longest queues and climb to a rooftop cafe for the view, which is the finest in the city.
Can non-Muslims enter the Koutoubia Mosque?
No, the Koutoubia Mosque is not open to non-Muslims, and the same rule holds for almost every mosque in Morocco, with the Hassan II Mosque in Casablanca as the well-known exception. The visitor can walk in the gardens around the mosque and can see the minaret from the square, which is the view that matters most.
What happened to Marrakech in the earthquake of 2023?
The earthquake of 8 September 2023 damaged the old walls and some of the houses of the medina, and the repair is still going on, with the craftsmen of the city rebuilding in the same earth and brick. The main monuments survived, and the city reopened within days, so the visitor will see scaffolding on some of the old houses and a city that is being put back together.
How many days should I spend in Marrakech?
Three days are enough to see the medina, the square, the Koutoubia, the madrasa, the tombs and the gardens, with a day for the Atlas or for the desert. A longer stay allows a trip over the Atlas to Ait-Ben-Haddou and a day in Essaouira on the coast, which are the two most popular trips from the city.
What is the best time to visit Marrakech?
The best time to visit Marrakech is the spring and the autumn, in March to May and in September to November, when the days are warm and the nights are cool. The summer brings heat that can pass 40 degrees, and the winter brings clear skies and cold mornings, with snow on the Atlas.
Verified
- The Medina of Marrakesh was inscribed by UNESCO in 1985 as ref 331, under criteria (i), (ii), (iv) and (v), and the property covers the medina of about 700 ha, with the Koutoubia minaret, the kasbah and the ramparts. The city was founded in 1070 to 1072 by the Almoravids, and the minaret of the Koutoubia, 77 m high, is the symbol of the city.
- Jemaa el-Fnaa was among the first nineteen Masterpieces of the Oral and Intangible Heritage of Humanity proclaimed in 2001, and it passed to the Representative List of the Intangible Cultural Heritage when the list was created in 2008. The proclamation was made for the storytellers, the musicians and the healers who work in the square, and the square is the only public place in Morocco with such a listing.
- The Koutoubia mosque was begun in 1147 and rebuilt in about 1158, and its minaret was completed in about 1195 under the caliph Yaqub al-Mansur. The minaret, 77 m high, is the model for the Giralda in Seville and the Hassan Tower in Rabat, and it is the symbol of the city.
- The Ben Youssef Madrasa was completed in 1564 and 1565 under the sultan Abdallah al-Ghalib, and it holds 130 rooms around a courtyard of carved cedar and marble. The first school on the site was built in the fourteenth century under the Marinids, and the madrasa was the largest in Morocco.
- The earthquake of 8 September 2023 measured 6.8, and it killed nearly three thousand people in the villages of the High Atlas, where the houses of mud brick collapsed. In Marrakech the damage was lighter, and the minaret of the Kharbouch mosque on Jemaa el-Fnaa was cracked, while the Koutoubia and the palaces stood, and the city reopened to visitors within days.
- The Wikidata record Q101625 describes Marrakech as a big city, with coordinates 31.6295 degrees north and 7.9811 degrees west, and the live record returned by the Wikidata service matches those values. The population of the city was 1,002,697 by the 2024 census, with 1,085,330 in the metro area, and the city stands at 468 m above sea level.
Sources
- UNESCO World Heritage Centre — Medina of Marrakesh, inscribed 1985, ref 331: https://whc.unesco.org/en/list/331/
- UNESCO World Heritage Centre — Morocco, nine properties inscribed: https://whc.unesco.org/en/statesparties/ma
- Wikidata — Marrakech, Q101625: https://www.wikidata.org/wiki/Q101625
Unverified
- The distance of about 240 km by road from Casablanca and the train time of about two and a half hours follow the Vietnamese corpus, and the current timetable was not checked against the railway operator on the check date.
- The claim that the Palmeraie was planted by the Almoravids when the city was founded is the traditional account, and it is presented here as the common telling rather than as a documented fact.
- The details of the earthquake damage to individual buildings in the medina follow the Vietnamese corpus and press reports, and the current state of each repair was not rechecked on the check date.
- The visitor numbers and the ranking of Marrakech as the most visited destination in Morocco follow the Vietnamese corpus, and the latest tourism figures were not rechecked on the check date.
Illustrations
- Hero: Marrakech. Free image: https://upload.wikimedia.org/wikipedia/commons/b/b9/Marrakech_sunset.png — CC BY-SA 4.
- In body, Marrakech: Colourful slippers in a shop in Marrakesh, Morocco. Free image: https://upload.wikimedia.org/wikipedia/commons/b/be/Babuchas_02_–2014–_Marrakech%2C_Marruecos.jpg — CC BY-SA 3.
- In body, Marrakech: lamp maker, Medina of Marrakech. Free image: https://upload.wikimedia.org/wikipedia/commons/f/f7/Lamp_maker%2C_Medina_of_Marrakech.jpg — CC BY-SA 4.
