Four cities have been the capital of Morocco under its different dynasties: Fes, Marrakech, Meknes and Rabat. Each one kept the palaces, gates, mosques and walled medinas of its time as a capital, and all four are UNESCO World Heritage Sites. Three of them sit in the north, within a few hours of each other, which is why a tour of the imperial cities usually means the north of Morocco, with Marrakech visited on its own or at the end of a Sahara trip.
Quick answer
The imperial cities of Morocco are Fes, Meknes, Rabat and Marrakech, the four cities that have served as royal capitals. In the north they combine naturally with Chefchaouen, the blue city in the Rif Mountains, and Tangier on the Strait of Gibraltar. Plan 5 to 6 days for the north: two nights in Fes, one or two in Chefchaouen, Meknes and the Roman ruins of Volubilis as a stop on the way, and half a day each in Rabat and Tangier.
What are the imperial cities of Morocco?
| City | Capital under | UNESCO listed | Do not miss |
|---|---|---|---|
| Fes | Idrisids from the 9th century, Marinids, Alawites | 1981 (medina) | Fes el Bali medina, Chouara tannery, Al Qarawiyyin |
| Meknes | Moulay Ismail, from 1673 | 1996 | Bab Mansour gate, royal granaries |
| Rabat | Alawites, capital since 1956 | 2012 | Kasbah of the Udayas, Hassan Tower |
| Marrakech | Almoravids, Almohads, Saadians | 1985 (medina) | Jemaa el Fna, Bahia Palace |
Fes: the spiritual and cultural heart
Fes el Bali, founded at the end of the 8th century by Idris I and Idris II, is one of the largest car free urban areas in the world and the most authentic medina in Morocco. Inside its walls you find the Al Qarawiyyin mosque and university, founded in 857 or 859 and described by UNESCO and Guinness World Records as the oldest existing university, the leather dyeing pits of the Chouara tannery, and the carved madrasas of Bou Inania and Al Attarine.
The medina is a maze of thousands of narrow lanes and it is easy to get lost, so a licensed local guide for the first day is worth it. Stay: two nights, with one full day for the medina.
Meknes and Volubilis: palaces and Roman ruins
Meknes was the grand capital of Sultan Moulay Ismail, who made it his seat in 1673 and surrounded it with kilometres of walls, gates and granaries, which is why it is often called the Versailles of Morocco. The monumental Bab Mansour gate faces the square of El Hedim. About 30 km away, Volubilis holds the best preserved Roman ruins in Morocco, with mosaic floors still in place, and the holy town of Moulay Idriss sits on the hill beside it.
Stay: no need to sleep here. Visit Meknes and Volubilis as a half day stop on the drive between Fes and Chefchaouen or Rabat.
Rabat: the modern capital
Rabat has been the capital of Morocco since independence in 1956 and is the calmest of the imperial cities. The Kasbah of the Udayas looks over the mouth of the Bou Regreg river with its blue and white lanes, and the unfinished Hassan Tower from the 12th century stands beside the Mausoleum of Mohammed V. Stay: half a day on the way between Casablanca and the north, or a night if you want a slower pace.
Chefchaouen: the blue city of the Rif
Chefchaouen was founded in 1471 as a small fortress in the Rif Mountains and is famous for its blue painted streets. Locals give several reasons for the blue, from keeping mosquitoes away to a symbol of the sky. It is a place to slow down: wander the medina, climb to the Spanish Mosque for the sunset view over the town, and if you have a full day, walk to the Akchour waterfalls in the national park nearby. Stay: one night at least, two if you want a day of hiking.
Tangier: the gateway to Africa
Tangier faces Spain across the Strait of Gibraltar and is the arrival point for travellers coming by ferry or flying into the north. See the kasbah and the old medina, Cap Spartel where the Atlantic meets the Mediterranean, and the Caves of Hercules. The white medina of Tetouan, a UNESCO site since 1997, is on the road to Chefchaouen. Since 2018 the Al Boraq high speed train has linked Tangier with Rabat and Casablanca, with Tangier to Casablanca in a little over two hours. Stay: half a day to one night.
Driving times between the cities
The cities of the north are close together, so most days have between one and five hours of driving. These are the legs used on our tours.
| Route | Distance | Driving time | Stops on the way |
|---|---|---|---|
| Casablanca to Rabat | 90 km / 56 mi | approx. 1h15 | Hassan II Mosque before leaving |
| Casablanca to Chefchaouen via Rabat | 330 km / 205 mi | approx. 4h30 | Rabat, Rif Mountains |
| Tangier to Chefchaouen via Tetouan | 120 km / 75 mi | approx. 2h15 | Tetouan medina |
| Chefchaouen to Fes via Volubilis and Meknes | 260 km / 162 mi | approx. 4h30 | Volubilis, Moulay Idriss, Meknes |
| Fes to Meknes | 60 km / 37 mi | approx. 1h | Bab Mansour, royal granaries |
| Fes to Rabat | 200 km / 124 mi | approx. 2h30 | Meknes on the way |
| Fes to Merzouga (Sahara) | 470 km / 292 mi | approx. 6h30 | Ifrane, Middle Atlas cedar forest, Midelt |
Approximate road distances and driving times without stops.
How to plan the north: sample routes
- From Casablanca (6 days): Casablanca, Rabat, Chefchaouen (2 nights), Volubilis and Meknes, Fes (2 nights), back to Casablanca. See the 6 day Imperial Cities tour from Casablanca.
- From Tangier (5 days): Tangier, Tetouan, Chefchaouen, Volubilis and Meknes, Fes (2 nights), Rabat, back to Tangier via Asilah. See the 5 day tour from Tangier.
- The north and the Sahara (7 to 11 days): after Fes, continue south to the Merzouga dunes and finish in Marrakech, a complete crossing of Morocco.
Spring and autumn are the best seasons for the north. Winter is green but rainy around Chefchaouen and Tangier. See the best time to visit Morocco for each month.






