Twelve centuries of sultans, four royal capitals, and one road trip that connects them all, explained by Moroccan drivers who have driven the imperial route since 2012
The imperial cities of Morocco are Fes, Marrakech, Meknes, and Rabat, the four cities that have served as the country's royal capital at different points in its history. Together with nearby Volubilis, they hold five UNESCO World Heritage sites, the world's oldest continuously operating university, and some of the finest Islamic architecture anywhere. What most guides don't tell you is how these cities actually fit together on the map: which ones pair easily, which drive is longer than it looks, and how to plan the route from Casablanca, where most flights from the US land. This guide covers both the history and the logistics.
Quick Answer: What Are the Imperial Cities of Morocco?
Morocco has four imperial cities: Fes (founded 789, the oldest and the spiritual capital), Marrakech (founded around 1070 by the Almoravids, the "Red City"), Meknes (Sultan Moulay Ismail's capital from 1672), and Rabat (founded as an Almohad fortress in the 12th century, Morocco's capital since 1912). Each served as the capital of a ruling dynasty. You need 5 to 7 days to see all four comfortably, starting from Casablanca.
Related Guides and Transfers
- 5-Day Imperial Cities Tour
- Casablanca to Fes Transfer
- Casablanca to Marrakech Transfer
- Things to Do in Casablanca
- Is Morocco Safe?
- Best Time to Visit Morocco
Ready to Book? We drive the full imperial route with a private licensed driver: Rabat, Meknes, Volubilis, Fes, and Marrakech, at your own pace.
The Imperial Cities at a Glance
| 4 | Imperial cities: Fes, Marrakech, Meknes, Rabat |
| 789 | Founding of Fes, the oldest imperial city |
| 5 UNESCO sites | Fes medina, Marrakech medina, Meknes, Volubilis, Rabat |
| 5–7 days | Ideal time to see all four cities |
What Are the Imperial Cities of Morocco?
The imperial cities are the four historic capitals of Morocco's ruling dynasties. For more than a thousand years, each new dynasty tended to rule from a city of its own choosing, building palaces, mosques, gates, and walls to mark its power. Fes, Marrakech, Meknes, and Rabat are the four cities that served as the seat of the sultan long enough to be shaped by it, which is why each one still has a royal palace, a historic medina, and monumental architecture.
The term "imperial city" is a European travel label rather than an official Moroccan title, but it has become the standard way to describe these four cities. A trip linking them, often called the "imperial cities tour," is one of the most popular routes in the country.
| Dynasty | Period | Main Capital | Lasting Legacy |
|---|---|---|---|
| Idrisids | 8th–10th century | Fes | Founded Fes and the first Moroccan state |
| Almoravids | 11th–12th century | Marrakech | Founded Marrakech |
| Almohads | 12th–13th century | Marrakech (also built Rabat) | Koutoubia Mosque, Hassan Tower, Kasbah of the Udayas |
| Marinids | 13th–15th century | Fes | The great madrasas of Fes, Fes el-Jdid |
| Saadians | 16th–17th century | Marrakech | Saadian Tombs, El Badi Palace |
| Alaouites | 17th century–today | Fes, Meknes, Marrakech, then Rabat | Meknes's Imperial City, Rabat as modern capital |
The Four Imperial Cities Compared
| City | Founded | Nickname | UNESCO Listing | Days Needed | Best For |
|---|---|---|---|---|---|
| Fes | 789 (Idrisids) | The Spiritual Capital | Medina of Fez, 1981 | 2 days | History, crafts, the medieval medina |
| Marrakech | c. 1070 (Almoravids) | The Red City | Medina of Marrakech, 1985 | 2–3 days | Souks, palaces, gardens, nightlife |
| Meknes | 11th century; capital from 1672 | The Versailles of Morocco | Historic City of Meknes, 1996 | Half to 1 day | Monumental gates, Volubilis ruins, a calmer medina |
| Rabat | 12th century (Almohads) | The Modern Capital | Rabat, 2012 | 1 day | Relaxed sightseeing, coastal kasbah |
Fes: The Spiritual Capital (Founded 789, Idrisids)
Fes is the oldest of the imperial cities and, for many travelers, the most extraordinary. It was founded by Idris I in 789 and expanded by his son Idris II, and it became the intellectual and religious heart of Morocco. Its old walled city, Fes el-Bali, was Morocco's first UNESCO World Heritage site, inscribed in 1981. It's one of the largest car-free urban areas in the world, a maze of more than 9,000 lanes where donkeys still carry goods past workshops that have operated for centuries.
Fes is also home to Al-Qarawiyyin, founded in 859 by Fatima al-Fihri and widely recognized as the world's oldest continuously operating university. Under the Marinids, the city filled with richly decorated madrasas, and it served as the capital again under several later sultans.
Top Things to See in Fes
- Chouara Tannery: The famous stone vats of dye, best seen from a leather-shop terrace in the morning.
- Bou Inania and Al-Attarine Madrasas: Marinid masterpieces of carved cedar, stucco, and zellige.
- Bab Bou Jeloud: The blue-tiled gate that is the main entrance to the medina.
- Royal Palace gates (Dar el-Makhzen): Seven monumental brass doors in Fes el-Jdid.
- The Mellah and the Borj Nord viewpoint: For the city's Jewish history and the best panorama.
Local tip: Hire a licensed guide for your first half-day in the Fes medina. It's the easiest city in Morocco to get lost in, and a guide turns the maze into a story instead of a stress test.
Marrakech: The Red City (Founded c. 1070, Almoravids)
Marrakech was founded around 1070 by the Almoravids, a Berber dynasty from the Sahara, and gave its name to the whole country. "Morocco" comes from Marrakech. It was the capital of the Almoravids, the Almohads, and later the Saadians, who made it one of the richest cities in the Islamic world in the 16th century. Its red-ochre walls earned it the nickname "the Red City," and its medina became a UNESCO World Heritage site in 1985.
Top Things to See in Marrakech
- Jemaa el-Fna: The great square of storytellers, musicians, and food stalls, at its liveliest after sunset.
- Koutoubia Mosque: The 12th-century Almohad minaret that became the model for the Hassan Tower in Rabat and the Giralda in Seville.
- Bahia Palace: A 19th-century palace of painted ceilings and tiled courtyards.
- Saadian Tombs and El Badi Palace: The golden age of the Saadian dynasty.
- Ben Youssef Madrasa and the souks: The city's finest madrasa and its maze of markets.
- Jardin Majorelle: The cobalt-blue garden restored by Yves Saint Laurent.
Local tip: Marrakech is the most hectic of the four cities. Stay in a riad inside or near the medina, start sightseeing early, and keep your afternoons for gardens and rooftop terraces.
Meknes: The Versailles of Morocco (Moulay Ismail's Capital from 1672)
Meknes began as an 11th-century Almoravid settlement, but it became an imperial city in 1672, when the Alaouite sultan Moulay Ismail made it his capital. Over a reign of 55 years, he built a vast palace city of granaries, stables, gates, and roughly 40 km (25 miles) of ramparts. European visitors compared it to the Versailles of his contemporary Louis XIV. The Historic City of Meknes was listed by UNESCO in 1996.
Top Things to See in Meknes
- Bab Mansour: Often called the most beautiful gate in Morocco, facing El Hedim Square.
- El Hedim Square: The heart of the medina, reopened after a three-year renovation.
- Mausoleum of Moulay Ismail: One of the few royal shrines in Morocco where non-Muslims may enter the outer courtyards.
- Heri es-Souani: Moulay Ismail's colossal granaries and stables.
- Dar Jamaï Museum: A 19th-century palace housing Moroccan arts.
Important to know: Meknes has been through several years of restoration work. As of 2026, most main monuments have reopened, but some sites, such as the Heri es-Souani granaries and the Kara Prison, were still reported under restoration. Check the current status before you go. We confirm it for every guest the week of their trip.
Don't Miss: Volubilis and Moulay Idriss
About 30 minutes from Meknes, Volubilis is Morocco's best-preserved Roman city, a UNESCO World Heritage site since 1997, famous for its triumphal arch and floor mosaics. On the hill next to it sits Moulay Idriss Zerhoun, the holy town where Idris I, founder of Fes, is buried. Most travelers combine Meknes and Volubilis on the drive between Rabat and Fes.
Rabat: The Modern Capital (Almohads, Capital Since 1912)
Rabat's story begins with the Almohads, who built a fortified ribat on the mouth of the Bou Regreg River in the 12th century. Sultan Yaqub al-Mansur planned a vast mosque here, but it was never finished; its unfinished minaret, the Hassan Tower, still stands. Rabat served as an Alaouite capital at times, and in 1912 the French protectorate made it Morocco's administrative capital. It remained the capital after independence in 1956. Rabat, "Modern Capital and Historic City," was inscribed by UNESCO in 2012.
Top Things to See in Rabat
- Kasbah of the Udayas: A blue-and-white fortress village with ocean views and the Andalusian Gardens.
- Hassan Tower and the Mausoleum of Mohammed V: The unfinished Almohad minaret beside the royal mausoleum and its mounted guards.
- Chellah: Roman and Marinid ruins now home to nesting storks.
- The medina and Rue des Consuls: A relaxed, low-pressure place to shop.
- Mohammed VI Museum of Modern and Contemporary Art: For modern Moroccan art.
Local tip: Rabat is the calmest of the four cities and only about an hour from Casablanca, which makes it the perfect first stop after an overnight flight.
Is Casablanca an Imperial City?
No. Casablanca is Morocco's largest city and economic capital, but it was never a royal capital, so it isn't one of the imperial cities, even though some tour listings include it. Morocco has four imperial cities, not five. Casablanca is still part of almost every imperial cities trip, because Mohammed V International Airport is where most flights from the US land, and the Hassan II Mosque makes a perfect first-day stop. Before the trip, see our guide to safety in Casablanca.
Imperial Cities Route: Distances and Drive Times
The imperial cities form a natural loop. Rabat, Meknes, and Fes sit close together in the north, while Marrakech is far to the south. That long Fes–Marrakech leg is the one most first-timers underestimate.
| Route | Distance (approx.) | Drive Time (approx.) | Notes |
|---|---|---|---|
| Casablanca Airport → Rabat | 120 km (75 mi) | 1h 30m | Easy highway drive |
| Casablanca → Rabat | 90 km (56 mi) | 1h 15m | Also about 1 hour by train |
| Rabat → Meknes | 140 km (87 mi) | 1h 45m | Highway |
| Meknes → Volubilis | 30 km (19 mi) | 40m | Country road through olive groves |
| Volubilis → Fes | 85 km (53 mi) | 1h 30m | Via Moulay Idriss |
| Casablanca → Fes | 290 km (180 mi) | 3h 30m | Direct highway |
| Fes → Marrakech | 530 km (330 mi) | 7–8h | Via the Middle Atlas (Ifrane, Azrou, Beni Mellal); best split with stops |
| Casablanca → Marrakech | 240 km (150 mi) | 3h | Highway |
| Fes → Chefchaouen (add-on) | 200 km (125 mi) | 3h 30m–4h | Mountain road through the Rif |
| Fes → Merzouga, Sahara (add-on) | 470 km (290 mi) | 7–8h | Via Ifrane, Midelt, and the Ziz Valley |
Drive times are approximate and don't include photo or lunch stops.
Drive the Imperial Route with a Local
Private, door-to-door transfers between Casablanca, Rabat, Meknes, Fes, and Marrakech, with stops at Volubilis, Ifrane, or anywhere you like. You get a licensed driver, a fixed price, and no train connections to juggle with luggage.
Imperial Cities Itineraries: 4, 5 and 7 Days
4 Days: The Essentials
| Day | Route | Highlights |
|---|---|---|
| 1 | Casablanca → Rabat | Hassan II Mosque, then Kasbah of the Udayas and Hassan Tower |
| 2 | Rabat → Meknes → Volubilis → Fes | Bab Mansour, Roman ruins, evening in Fes |
| 3 | Fes | Guided medina tour, tanneries, madrasas |
| 4 | Fes → Middle Atlas → Marrakech | Ifrane, cedar forest and Barbary macaques, arrive in Marrakech |
5 Days: The Classic Imperial Cities Tour
Add a full day in Marrakech to the 4-day plan, so you can see the Bahia Palace, the Koutoubia, the souks, and Jemaa el-Fna at night without rushing. For a ready-made, private version with a driver, see our 5-Day Imperial Cities Tour.
7 Days: Imperial Cities at a Relaxed Pace
| Day | Route | Highlights |
|---|---|---|
| 1 | Arrive Casablanca | Hassan II Mosque, Corniche, jet-lag recovery |
| 2 | Casablanca → Rabat | Full day in the capital |
| 3 | Rabat → Meknes → Volubilis → Fes | Imperial Meknes and the Roman city |
| 4 | Fes | Medina, tanneries, madrasas |
| 5 | Fes | Royal Palace, Mellah, a cooking class or hammam |
| 6 | Fes → Ifrane → Marrakech | Middle Atlas scenery on the long drive south |
| 7 | Marrakech | Palaces, gardens, souks, Jemaa el-Fna |
Popular add-ons: Add 1–2 days for the blue city of Chefchaouen between Rabat and Fes, as in our 4-day Casablanca to Chefchaouen tour. Or go from Fes to the Sahara and on to Marrakech with 2–3 extra days, in place of the long direct drive. See our Morocco desert tours.
Train vs Private Driver: How to Travel Between the Imperial Cities
Morocco's ONCF trains connect all four imperial cities, and they're a good option on the northern leg. The catch is the Fes–Marrakech section: the train takes around 6.5 to 7 hours and runs via Casablanca. By road, a driver can take the scenic Middle Atlas route with stops along the way.
| Factor | Train (ONCF) | Private Driver |
|---|---|---|
| Cost | Lowest per person | Higher, but per vehicle, so it's good value for families and groups |
| Fes → Marrakech | About 6.5–7 hours via Casablanca | 7–8 hours with scenic stops (Ifrane, Azrou) |
| Meknes and Volubilis | Train to Meknes, then a taxi to Volubilis | Both on the same day, door to door |
| Luggage | Carry it between stations and taxis | Stays in the car all trip |
| Flexibility | Fixed timetables | Stop where you want, leave when you want |
| Best for | Solo travelers and light packers on a budget | Families, first-timers, and anyone combining Volubilis, Ifrane, or the Sahara |
Best Time to Visit the Imperial Cities
Spring (March to May) and fall (late September to November) are ideal, with warm days, cool evenings, and comfortable sightseeing in every city. Summer is hot inland: Fes and Marrakech regularly pass 100°F (38°C) in July and August, while coastal Rabat stays mild. Winter is pleasant for sightseeing, but nights are cold and the Middle Atlas road between Fes and Marrakech can see snow around Ifrane. During Ramadan, monuments stay open, though hours and restaurant schedules change. See our full guide to the best time to visit Morocco.
Imperial Cities Budget (USD)
| Item | Typical Cost |
|---|---|
| Monument entry (madrasas, palaces, Volubilis) | About $3–10 each |
| Licensed half-day medina guide (Fes or Marrakech) | About $30–50 per group |
| Train Fes → Marrakech | About MAD 220–420 per person (~$22–42), depending on class |
| Mid-range riad | About $70–150 per night |
| Private driver for the full route | Per vehicle; see our 5-day tour for current pricing |
Prices as of November 2026 are approximate and can change. Before you travel, read our guide on whether Morocco is safe.
Meet Your Local Drivers
Casablanca Navette is a family-run, licensed Moroccan agency based in Casablanca and led by Said Khalili. Since 2012, our drivers have driven the imperial route in our own fleet countless times: from the airport to Rabat, through Meknes and Volubilis to Fes, and over the Middle Atlas to Marrakech. We've welcomed around 10,000 travelers with a 5.0 average rating. Every drive time, tip, and itinerary in this guide comes from the road itself. Questions about your route? Message Said on WhatsApp.
FAQ: Imperial Cities of Morocco
What are the four imperial cities of Morocco?
Fes, Marrakech, Meknes, and Rabat. Each served as the royal capital of a ruling dynasty: Fes under the Idrisids and Marinids, Marrakech under the Almoravids, Almohads, and Saadians, Meknes under Moulay Ismail, and Rabat as the modern capital since 1912.
Are there five imperial cities in Morocco?
No. There are four imperial cities: Fes, Marrakech, Meknes, and Rabat. Casablanca is sometimes listed by mistake, but it was never a royal capital, although it's the usual starting point for imperial cities tours.
Which is the oldest imperial city in Morocco?
Fes. It was founded in 789 by Idris I and expanded by Idris II. Its medina, Fes el-Bali, became Morocco's first UNESCO World Heritage site in 1981, and it is home to Al-Qarawiyyin, founded in 859.
Which imperial city is the best to visit?
For history and the most authentic medieval medina, Fes. For atmosphere, palaces, and gardens, Marrakech. For a calmer, uncrowded experience, Meknes and Rabat. Most travelers see all four in 5 to 7 days.
How many days do you need for the imperial cities?
Four days is the minimum to see all four, but it's rushed. Five days allows a full day in Marrakech, and seven days gives two days in Fes and time to recover from jet lag in Casablanca.
Why is Rabat the capital of Morocco?
The French protectorate moved the administrative capital to coastal Rabat in 1912, and Morocco kept it as the capital after independence in 1956. Rabat's royal story goes back much further: the Almohad sultan Yaqub al-Mansur planned it as a great capital in the 12th century and built its kasbah and the Hassan Tower.
When was Marrakech the capital of Morocco?
Marrakech was the capital under the Almoravids, who founded it around 1070, and the Almohads in the 11th to 13th centuries, then again under the Saadians in the 16th century. It also served as a royal residence under later Alaouite sultans.
Can you do the imperial cities without a tour?
Yes. Trains connect all four cities, though you'll need taxis for Volubilis and the Fes–Marrakech train takes about 6.5–7 hours. A private driver is the easiest way to combine Meknes, Volubilis, Fes, and Marrakech without juggling luggage and connections.
Explore More
- 5-Day Imperial Cities Tour
- 4-Day Casablanca to Chefchaouen Tour
- Morocco Desert Tours
- Casablanca to Fes Transfer
- Casablanca to Marrakech Transfer
- Morocco Airport Information
Explore the Imperial Cities with a Private Driver Rabat, Meknes, Volubilis, Fes, and Marrakech, door to door, at your own pace. See the tour →
Want a Custom Route? Add Chefchaouen, the Sahara, or extra days. Ask a local driver. Contact us on WhatsApp →