Timeless Places

Fès-Meknès, Morocco

Historic City of Meknes

مكناس · mek-NESS

In the late 17th century, Sultan Moulay Ismail chose a modest town on a plateau of olive groves to be his capital, and spent half a century turning it into an imperial city of walls, gates, palaces, granaries and stables. Its great gate, Bab Mansour, still faces the square where the medina begins.

iPhoto: Daemon11, CC BY-SA 4.0, Wikimedia Commons

The story

Late afternoon on Place el-Hedim. Pottery sellers spread green-glazed bowls and tagines on the paving stones, a boy pushes a cart of cactus fruit, and families sit on the low walls with glasses of mint tea. All of them have their backs to the thing that brings the visitors: Bab Mansour, a gate so large it looks like the front of a palace, covered in green and white tiles and black marble, its arch high enough for an elephant with a rider. As the sun drops, its tiles turn the colour of honey.

Meknes began as a settlement of the Miknasa, a Berber tribe, and grew under the Almoravids (1040–1147), the Almohads (1121–1269) and the Marinids (1244–1465) into a walled medina with mosques and colleges. Its great moment came when Moulay Ismail, second sultan of the Alaouite dynasty (from 1631), made it his capital in 1672. For fifty-five years he built: walls, gates, palaces, gardens, a reservoir, granaries for years of siege and stables for thousands of horses. After his death the court moved on, and an earthquake in 1755 damaged much of what he left. What survives was inscribed in 1996.

Why come here?

  • Only here: Bab Mansour, often called the most beautiful gate in Morocco; Heri es-Souani, granaries and stables built on a scale with few equals in the Islamic world; the mausoleum of Moulay Ismail, one of the few shrines in Morocco where non-Muslim visitors may usually step inside; and a 17th-century imperial city built around an older medina, described by UNESCO as a successful blend of Islamic and European styles.
  • Original or rebuilt? Mostly original but much restored: the walls, gates, granaries and mausoleum date from Moulay Ismail's reign (1672–1727), with Bab Mansour completed in 1732; many were damaged in the earthquake of 1755, and the walls, Place el-Hedim, Heri es-Souani and the Agdal basin have all been restored in recent years.
  • The moment: walking into the endless arched aisles of Heri es-Souani, cool and dim, where shafts of light fall from openings in the roof onto walls of rammed earth several metres thick.
  • Worth the trip? Four stars: a day is enough for the main sights, and it combines easily with Volubilis and Moulay Idriss, half an hour away, and with Fez, an hour away.
  • Who it suits: lovers of architecture and history, and travellers who want a calmer, less hurried medina than Fez or Marrakesh.

Why it matters The Historic City of Meknes was inscribed on the World Heritage list in 1996 because it is an outstanding example of a 17th-century Maghrebi capital, in which the imperial city built by Sultan Moulay Ismail, with its walls, gates and great granaries, combines Islamic and European styles of design and planning in a remarkable way.

If you have one minute

The sultan who never stopped building

Bab Mansour gate and its square
Bab Mansour gate and its squareJerzy Strzelecki, CC BY 3.0

Moulay Ismail ruled Morocco for fifty-five years, from 1672 to 1727, one of the longest reigns in its history. He drove the English out of Tangier and the Spanish out of several coastal towns, built an army of tens of thousands of soldiers, and exchanged embassies with Louis XIV of France. In Meknes he raised an imperial city south of the old medina, ringed by walls that run for many kilometres, with gates, palaces, gardens, a vast reservoir and granaries that could feed the city through a long siege. Thousands of workers built it, among them prisoners and captives. Moulay Ismail was building Meknes in the same years that Louis XIV was building Versailles, and the two kings knew it.

Things people often get wrong

"Habs Qara was a prison for Christian slaves." The vast underground vaults near the Koubba el-Khayatine are shown to visitors as a prison, and legend says captives were kept there; many historians think they were built as storerooms.

"Bab Mansour was built by Moulay Ismail." He began it, but it was finished in 1732 by his son Moulay Abdallah, as the inscription on the gate records.

Close by, with a page of its own: Fez Medina, Volubilis.

Also among Palaces: The Louvre, Forbidden City, Potala Palace, Gyeongbokgung, Summer Palace, Alcázar of Seville, all 143.

Also among Old towns: Jerusalem Old City, Fez Medina, Salzburg Old Town, Grand-Place, Brussels, Bruges, Dubrovnik, all 151.

Our Shared Heritage

What was left

The medina with its walls, gates, mosques, fountains, souks, the Mellah (ملاح) and the Bou Inania madrasa; the imperial city of Moulay Ismail with Bab Mansour and other gates, the mausoleum of Moulay Ismail, the Koubba el-Khayatine and the vaults of Habs Qara, the Heri es-Souani granaries and stables and the Agdal basin; and Dar Jamaï on Place el-Hedim.

Reading the land

A plateau between the valley of the Boufekrane river and the plain of Saïs, with olive groves and vineyards around it and the Middle Atlas on the horizon; the medina sits on the northern slope, the imperial city on the higher ground to the south.

Its counterparts in the world

Compare the medina of Fez, an hour away; the Kasbah of Marrakesh and the Alhambra in Granada, palace cities of the same Hispano-Moorish tradition; and Versailles, built by Louis XIV in the same decades.

Those who keep it

Morocco's Ministry of Youth, Culture and Communication, which looks after the historic monuments; the Agency for the Development and Rehabilitation of the Medina of Fez, which leads restoration work in Meknes; the city and prefecture of Meknes; and the craftsmen who still work in the medina. It was inscribed in 1996.

Why it belongs to everyone

It shows how a 17th-century ruler imagined power: in walls, gates and storehouses, built to last and to impress.

In the cultural dictionary City gate Zellige Mausoleum Islamic architecture

Now that you know so much about the history and culture of this place, is there anything you would like to say to future visitors? Leave a message

Go deeper: Meknes in six chapters6 chapters · about 4 min to read

About 7 minutes to read. A full day covers the old medina and the imperial city on foot or by petit taxi; stay the night to see Place el-Hedim come alive in the evening. What is particular to it: Bab Mansour; the immense granaries and stables; the mausoleum of the builder-sultan; and a medina quieter than its neighbour Fez. Original or rebuilt: mostly 17th- and 18th-century originals, much restored.

1. What to see

Zellige tilework on Bab Mansour, April
Zellige tilework on Bab Mansour, AprilHiroki Ogawa, CC BY 3.0

Five places make a visit. Bab Mansour and Place el-Hedim, the meeting point of the medina and the imperial city. The mausoleum of Moulay Ismail, with its tiled courtyards. Heri es-Souani, the granaries and stables, with the Agdal basin beside them. The Bou Inania madrasa in the medina, a Marinid college of the 14th century with carved cedar and stucco, and a view from its roof. And Dar Jamaï, a 19th-century palace on the square, now the National Museum of Music. Place el-Hedim is to Meknes what the piazza is to an Italian town: everyone passes through it, and nobody is in a hurry.

Pottery market on the square before the walls, December 2019
Pottery market on the square before the walls, December 2019Werner100359, CC BY-SA 4.0

2. The medina before the sultan

Courtyard of the Bou Inania Madrasa
Courtyard of the Bou Inania MadrasaBen Bender, CC BY-SA 3.0

The town takes its name from the Miknasa, a Berber tribe that settled here in the 10th century among olive groves. The Almoravids (1040–1147) fortified it, the Almohads (1121–1269) gave it a great mosque, and under the Marinids (1244–1465) it gained mosques, fountains and the Bou Inania madrasa, a college where students lived in small rooms around a courtyard and studied in the prayer hall. The medina grew around these, with souks for each trade, and in the 17th century a Mellah, or Jewish quarter, beside the palace. The madrasa's courtyard is as small as a college quad at Oxford, and every surface of it is decorated.

Carved wood and stucco in the Bou Inania Madrasa
Carved wood and stucco in the Bou Inania MadrasaBen Bender, CC BY-SA 3.0

3. Moulay Ismail's imperial city

Main arch and door of Bab Mansour, November 2014
Main arch and door of Bab Mansour, November 2014Robert Prazeres, CC BY-SA 4.0

Moulay Ismail cleared space south of the medina for a kasbah, a royal city of palaces, gardens, barracks and storehouses, walled off from the town. Its gates were its showpieces: Bab Mansour, named after its architect, Mansour al-Alj, "the renegade", a Christian convert to Islam, was finished in 1732 by his son. Inside, the sultan built palaces one after another, as well as mosques and a pavilion for receiving foreign envoys. He was buried in 1727 in a mausoleum he had prepared beside the tomb of a local saint; it was enlarged by his successors, and its courtyards and tiled halls are among the finest of their age in Morocco. Bab Mansour is less a door than a billboard: its message, in tile and marble, is that the sultan is rich and here to stay.

Tomb chamber with carved screen, December 2023
Tomb chamber with carved screen, December 2023Photo2023, CC BY 4.0

4. Granaries, stables and the Agdal basin

Long aisle of arches in the granaries, August 2018
Long aisle of arches in the granaries, August 2018Steven Lek, CC BY-SA 4.0

To feed his court and army, and to survive a siege, Moulay Ismail built Heri es-Souani, a granary of thick rammed-earth walls and high vaults, kept cool by water drawn from wells beneath it, and beside it long aisles of stables. Next to it lies the Agdal basin, a reservoir of still water, which watered the royal gardens and reflected the walls. After his death the granaries were left without a roof and the aisles fell open to the sky; today their rows of arches are one of the most photographed places in Meknes. The granaries were a strategic reserve on the scale of a modern grain silo, built entirely of earth and lime.

Agdal Basin and walls, April 2019
Agdal Basin and walls, April 2019FuriousYogi, CC BY-SA 4.0

5. Best views and photos

Bab Mansour gate in warm evening light, November 2012
Bab Mansour gate in warm evening light, November 2012Daemon11, CC BY-SA 4.0

Bab Mansour faces west across Place el-Hedim, so it is at its best in the late afternoon and early evening, and lit up after dark; a wide lens from the far side of the square takes in the whole gate. Heri es-Souani photographs best around midday, when light falls through the roof openings into the aisles. The Agdal basin is good at sunset and at night, when the walls are lit and reflected in the water. For the medina rooftops and minarets, climb to the roof of the Bou Inania madrasa. Spring and autumn bring clear skies without the summer heat. Meknes rewards the patient photographer the way a slow cook rewards a hungry guest: the best light comes at the end of the day.

Agdal Basin and walls at night, January 2020
Agdal Basin and walls at night, January 2020Mohamed Moustach, CC BY-SA 4.0

6. The medina, Dar Jamaï and how to visit

Meknes skyline with minaret and walls, April
Meknes skyline with minaret and walls, AprilAngela Schoettler († 2023), CC BY-SA 4.0

Meknes is on the railway between Rabat, Casablanca and Fez: about 2½ hours from Rabat and 40 minutes from Fez, with the medina a short taxi ride from the stations. Place el-Hedim is the place to start; the imperial city is large, so a petit taxi or a horse-drawn carriage helps between the mausoleum and the granaries. Each monument sells its own ticket at the door; the mosques are open to Muslims only, and the mausoleum may close at prayer times. Volubilis and Moulay Idriss are a half-hour drive north. Meknes is the quiet sibling of Fez: the same family resemblance, half the crowds.

Rooftops of the medina seen from above, December 2019
Rooftops of the medina seen from above, December 2019Walter Mittelholzer, Public domain

People who stood here

We checked this with Moroccan sources: the Moroccan National Tourism Office, the Ministry of Youth, Culture and Communication, MAP, Hespress, Médias24, Le Matin, Le Desk, Les Inspirations Éco, FNH and Fès News.

  • Moulay Ismail (sultan of Morocco, 1645–1727)The second ruler of the Alaouite dynasty (from 1631), who reigned from 1672 to 1727, made Meknes his capital and filled it with walls, gates, palaces and granaries; he is buried in the mausoleum that bears his name.

Tickets and travel info

Tickets and hours

  • Each monument sells its own ticket at the door, usually 9:00–17:00; Bab Mansour, the square and the walls are free.

Last checked 2026-11-18. The historic city of Meknes: a medina founded in the 11th century, with its walls, mosques, the 14th-century Bou Inania madrasa and the Mellah (ملاح); and the imperial city built by Sultan Moulay Ismail (r. 1672–1727) when he made Meknes his capital, with its walls and monumental gates such as Bab Mansour, palaces, the mausoleum of Moulay Ismail, the Heri es-Souani granaries and stables and the Agdal basin; a combination of Hispano-Moorish styles in a Maghrebi setting; inscribed in 1996..

Find a guide

Once you've read our history and culture pages, a guide is the best way to go deeper and make the most of your visit. You can find guides on these sites:

Find it on the map

Entrance · Bab Mansour and Place el-Hedim

Search for باب منصور، ساحة الهديم

The great gate on Place el-Hedim, between the medina and the imperial city (OpenStreetMap)

Start here · Mausoleum of Moulay Ismail

Search for ضريح المولى إسماعيل

Mausoleum of the sultan inside the imperial city (OpenStreetMap)

Start here · Heri es-Souani

Search for هري السواني

Granaries and stables beside the Agdal basin (OpenStreetMap)

Where to start

  • We'd suggest starting at Place el-Hedim in the morning, then the mausoleum and Heri es-Souani by taxi, lunch in the medina, Bou Inania and the souks in the afternoon, and back to the square for sunset.

Before you go

  • Summer afternoons are hot, so it's worth starting early; Friday midday is quiet, as many shops close for prayers.

Customs and manners

  • Mosques are open to Muslims only; at the mausoleum, please dress modestly, with shoulders and knees covered, and stay in the areas open to visitors.

Free entry

Free entry, no ticket needed. If you'd like a guide, please book one through our partner sites below: we earn a small commission at no extra cost to you, and it helps keep Timeless Places running. Thank you for your support!

Official website

Checked 2026-11-18 The Moroccan National Tourism Office's page on Meknes gives the main sights and the best seasons; there is no online ticket shop for the monuments in Meknes. Heri es-Souani, the Bou Inania madrasa, the Koubba el-Khayatine and Dar Jamaï each sell tickets at the door, usually open 9:00–17:00; Bab Mansour, Place el-Hedim and the walls are free to see.

Looking for a place to stay nearby or a rental car? You'll find more options below.

Stay nearby

This button opens one of several booking sites, such as Booking.com, Expedia, Hotels.com, Agoda or Vrbo, picked automatically. If it isn't the one you'd like, just close it and click again. Thank you for your support!

Rent a car

Bring your own licence and an International Driving Permit, and check before you go that the country accepts them.

In the local language

مكناس mek-NESS

Address The old city of Meknes in the Fès-Meknès region of northern Morocco, on a plateau above the Boufekrane valley, about 60 km west of Fez; the medina lies north of Place el-Hedim, and the imperial city of Moulay Ismail stretches south of Bab Mansour, with the Heri es-Souani granaries about 1.5 km further south

Google Maps Apple Maps

Words on the signs
بابGate
ساحةSquare
ضريحMausoleum
مدرسةMadrasa (college)
هريGranary
ملاحMellah (Jewish quarter)
تذكرةTicket

Opening hours are given in the local time of the place.

In pop culture

We have not found a film, a song or a famous visitor for this place yet.

Meanwhile in the world

YearHereElsewhere
1672Moulay Ismail becomes sultan and makes Meknes his capitalLouis XIV is building Versailles
1732Bab Mansour is completed by Moulay AbdallahGeorge Washington is born in Virginia
1755The great earthquake damages MeknesThe same earthquake destroys Lisbon
1996Meknes joins the World Heritage listDolly the sheep is cloned in Scotland

One line to remember: the capital that one sultan built in fifty-five years, behind a gate of tiles.

Local legends

No legends have been collected for this place yet.

Later, people who live here will be able to add the stories they grew up with.

Not certain, and where accounts conflict

How many horses did the stables hold?
Guides often say 12,000; the figure comes from old accounts and cannot be checked.
Was Habs Qara a prison?
Tradition says Christian captives were held there; many historians think the vaults were storerooms.

Look for these

  1. Read the tile poem above the arch of Bab Mansour.
  2. Walk the arched aisles of Heri es-Souani.
  3. Climb to the roof of the Bou Inania madrasa.
  4. Drink mint tea on Place el-Hedim at sunset.
  5. See the walls reflected in the Agdal basin at night.

I am here

Stand at the site, sign in, press the button, and collect its stamp. Your browser will ask to use your location. It is sent to us once to confirm that you are at the site; we keep how far you were from it, not the spot where you stood.

Your stamps are saved to your account, so they follow you to any device. Checking from a browser cannot rule out every false location; stricter checks arrive with the app.

Share your photos

Photos here show the place, not people. Each one is credited to the visitor who took it and appears after our team has looked at it. A photo with you in it belongs under “I am here”.

Messages