The 4 Imperial Cities of Morocco: Fes, Meknes, Marrakech and Rabat

Imperial cities of Morocco

The four imperial cities of Morocco are Fes, Meknes, Marrakech and Rabat. Each one served as the capital of Morocco under a ruling dynasty, and each still has the royal palaces, monumental gates, mosques and walled medinas to show for it. All four medinas are UNESCO World Heritage sites, and you can see all of them on one trip.

The imperial cities are among the best cities to visit in Morocco, and most of our private tours include at least two of them. Here is what makes each one special, what to see, and how to fit them into your trip.

The Imperial Cities at a Glance

CityCapital underKnown forTime to spend
FesIdrisids, Marinids, AlaouitesThe medieval medina of Fes el Bali, tanneries, madrasas2 days
MeknesSultan Moulay Ismail (Alaouite)Bab Mansour, royal granaries, nearby VolubilisHalf a day to 1 day
MarrakechAlmoravids, Almohads, SaadiansJemaa el-Fna, palaces, gardens, souks2 to 3 days
RabatToday’s capital, since 1912Hassan Tower, Kasbah of the Udayas, the royal mausoleumHalf a day to 1 day

Fes

Fes medina, one of the imperial cities of Morocco

Fes was founded at the end of the 8th century by Idris I and grew under his son Idris II, making it the oldest of the imperial cities. It became a great capital again under the Marinids in the 13th and 14th centuries, who built most of the madrasas you can visit today. Its old medina, Fes el Bali, is one of the largest car-free urban areas in the world and is widely seen as the best preserved medieval city in the Arab world.

Highlights include the Chouara tannery, the Bou Inania and Al-Attarine madrasas, the golden doors of the Royal Palace and the view over the medina from the Marinid Tombs. Al Quaraouiyine, founded in 859, is considered the oldest university still operating in the world.

Rooftops of Fes el Bali

See our full guide to the best things to do in Fes, and for where to stay, our ranking of the best riads in Fes.

Meknes

Bab Mansour gate in Meknes

Meknes is the smallest and most relaxed of the imperial cities. It became the capital under Sultan Moulay Ismail, who ruled from 1672 to 1727 and surrounded the city with long walls, monumental gates, huge granaries and royal stables. Its historic city has been a UNESCO World Heritage site since 1996.

Start at Bab Mansour, one of the grandest gates in Morocco, facing Place el Hedim. Then see the Mausoleum of Moulay Ismail, the Heri es-Souani granaries and stables, and the Agdal basin. The Roman ruins of Volubilis are about an hour away, and Fes is about an hour away too, so Meknes and Volubilis make an easy day trip from Fes.

Meknes imperial city walls

Read our full guide to Meknes, the imperial city.

Marrakech

Koutoubia Mosque in Marrakech

Marrakech was founded around 1070 by the Almoravids, who gave their name to the whole country, and it remained a capital under the Almohads and later the Saadians. The Koutoubia Mosque, the Saadian Tombs and the ruins of El Badi Palace all date from those dynasties. Its medina has been a UNESCO World Heritage site since 1985.

Today Marrakech is Morocco’s liveliest city. Walk Jemaa el-Fna square at dusk, explore the souks, visit Bahia Palace and the Ben Youssef Madrasa, and escape the crowds in the Majorelle Garden.

Marrakech medina

See our guide on what to do in Marrakech, our picks of the best riads in Marrakech and the best luxury hotels in Marrakech. For a night under the stars close to the city, the Agafay desert camps are about 40 minutes away.

Rabat

Hassan Tower in Rabat

Rabat, on the Atlantic coast, has been the capital of Morocco since 1912 and is the seat of the government and the official residence of the King. Its story goes back much further: in the 12th century the Almohad sultan Yaqub al-Mansur began the Hassan Tower here, meant to be the minaret of one of the largest mosques in the world, though it was never finished. Rabat was added to the UNESCO World Heritage list in 2012.

Visit the Hassan Tower and the Mausoleum of Mohammed V beside it, walk the blue and white lanes of the Kasbah of the Udayas above the ocean, and see the Chellah, a Roman and Marinid site. Rabat is about 1.5 hours from Casablanca, so it fits easily into the first day of a trip that starts there.

Kasbah of the Udayas in Rabat

If you are flying into Casablanca, see our guide to the best things to do in Casablanca.

How to Visit All Four Imperial Cities

The easiest way is a private tour with a driver. A classic route starts in Casablanca, visits Rabat, continues north to Chefchaouen, then goes to Volubilis (about 2 hours), Meknes (about 1 hour) and Fes (about 1 hour). From Fes, the road crosses the Middle Atlas to the Sahara at Merzouga, about 468 km and around 7 hours, then continues to Marrakech and back to Casablanca for your flight home. Our 14 day tour from Casablanca follows this route.

Compare routes and trip lengths in our 7, 10 and 14 day Morocco itinerary, and see what a private tour of Morocco costs. If you are deciding between a driver and the train, read our private driver vs train guide.

For the capital in more detail, read our guide to visit Rabat.

Imperial Cities of Morocco FAQ

What are the four imperial cities of Morocco?

Fes, Meknes, Marrakech and Rabat. Each was the capital of Morocco under one or more dynasties.

Which imperial city is the oldest?

Fes, founded at the end of the 8th century by Idris I.

What is the capital of Morocco today?

Rabat, the capital since 1912.

Which imperial city should I visit first?

It depends on where you fly in. From Casablanca, start with Rabat and head north. From Marrakech, start there and finish in Fes or loop back. See our Morocco itinerary planner.

How many days do you need to see all four?

Allow at least 7 to 8 days, and 10 days or more if you also want the Sahara and Chefchaouen.

Is Fes or Marrakech better?

Fes is more traditional and historic, Marrakech livelier and more varied. Most trips include both. Our first time in Morocco guide helps you choose.

Plan Your Trip to the Imperial Cities

We plan private tours of the imperial cities with a driver, licensed local guides in each medina and hand-picked riads and hotels. Tell us your travel dates, the number of travelers, your hotel level (Standard, Affordable Lux or Deluxe) and the city you are flying in and out of. Fill in the form below and we will send you a day by day itinerary and a quote.

Learn more about our private tours across Morocco, and follow Simply Morocco on Instagram and Facebook.

Sahara desert scenery on the 4-day Marrakech, Atlas Mountains and Sahara tour

4 Days: Marrakech – Atlas Mountains – Sahara

3 Nights
Marrakech
Marrakech
Calling all adventure seekers with just 4 days to spare in Morocco! Brace yourself for an exhilarating journey like no other. Traverse the awe-inspiring Sahara Desert, conquer the majestic peaks of the High Atlas mountains, delve into the captivating city of Ouarzazate, and immerse yourself in the vibrant spirit of Marrakech's red city. Prepare for […]
travel-to-sahara-morocco-7night-trip

7 Nights (8 days) Trip: Marrakech – Atlas Mountains – Sahara

7 Nights
Marrakech
Marrakech

Moderate Activity

Do you have 8 days to spend in Morocco? Look no further! This itinerary is designed to make the most of your time as you embark on an incredible journey through the Sahara Desert, the majestic High Atlas mountains, the captivating city of Ouarzazate, the renowned red city of Marrakech, and numerous other breathtaking landscapes. […]