Route · 5 to 12 days

Morocco's imperial cities

Updated October 2026

The four historic capitals linked by train: Fez, Meknes, Rabat and Marrakesh, with Casablanca and its mosque over the Atlantic on the long version.

Why this route

It is the only Moroccan route done entirely by train: ONCF links Fez, Meknes, Rabat, Casablanca and Marrakesh with reliable timetables and cheap tickets. No car or driver is needed on any leg.

Each city was the capital at a different moment and it shows: Fez is medieval, Meknes monumental, Rabat administrative and Marrakesh commercial. A week explains how the country was built.

Casablanca adds the Hassan II Mosque, the only one in Morocco non-Muslims can visit inside, with the tallest minaret in the world: 210 metres above the ocean.

Choose how many days

7–9 days · Our pick

  1. Fez · 3 nights
  2. Meknes · 1 night
  3. Rabat · 1 night
  4. Marrakesh · 3 nights

Times overland are approximate.

The cities

  1. 1

    Fez

    3 nights

    View of Fez

    On this route Fez is the first stop and the heaviest: the largest medieval medina in the world, with the tanneries, the madrasas and the artisan souks still working as they have for centuries. It is the city where you walk the most.

    What to see

    • The Chouara tanneries from a terrace
    • The Bou Inania madrasa, the most decorated in the country
    • The artisan quarter, with its looms and brass
    • The Jnan Sbil garden, to rest

    Tip

    Sleep inside the medina, in a riad, and go out early: before nine the streets are empty and you can walk without losing yourself in the crowd.

    40m by train to Meknes

  2. 2

    Meknes

    1 night

    View of Meknes

    Meknes is the forgotten capital: Moulay Ismail turned it into his Moroccan Versailles in the seventeenth century and today it takes half a day. The Bab Mansour gate, the stables and the Kara prison follow one another, and Volubilis is half an hour away.

    What to see

    • Bab Mansour, the most photographed gate in the country
    • The Heri es-Souani stables and the Agdal reservoir
    • El Hedim square at sunset
    • Volubilis, by taxi, with its Roman mosaics

    Tip

    Meknes is the cheapest stop on the trip and the one with the fewest tourists. If you are short on days, a morning covers it and you move on to Rabat in the afternoon.

    2h 15m by train to Rabat

  3. 3

    Rabat

    1 night

    View of Rabat

    Rabat is the capital and the tidiest of the four. The Hassan Tower, with its unfinished mosque columns, and the Kasbah of the Udayas above the Bou Regreg river are the must-sees, and the tram links the centre with the station.

    What to see

    • The Hassan Tower and the mausoleum of Mohammed V
    • The Kasbah of the Udayas and the Andalusian garden
    • The Mohammed VI museum of modern art
    • The beach at Salé, across the river

    Tip

    Rabat Ville station is in the centre and the tram reaches the Hassan Tower in ten minutes. It is the easiest city to get around without a taxi on the whole trip.

    55m by train to Casablanca

  4. 4

    Casablanca

    1 night · Long version only

    View of Casablanca

    Casablanca is the economic capital and the most European city in the country, with boulevards, a tram and skyscrapers. You visit it for one thing: the Hassan II Mosque, built partly over the sea, with room for 25,000 people in the prayer hall.

    What to see

    • The Hassan II Mosque, with a guided tour inside
    • The art deco quarter in the centre
    • The Ain Diab corniche, at sunset
    • The central market, for fish

    Tip

    Mosque visits run at fixed times and tickets are bought at the desk on the day; arrive with margin. The Al Boraq train links Casablanca and Rabat in 50 minutes.

    2h 40m by train to Marrakesh

  5. 5

    Marrakesh

    3 nights · from the full version

    View of Marrakesh

    Marrakesh closes the trip with the opposite of Fez: a more open medina, Jemaa el-Fnaa square full of life at night and the Menara and Majorelle gardens. It is the city where you most want one more day.

    What to see

    • Jemaa el-Fnaa and the night food stalls
    • The Bahia Palace and the Saadian tombs
    • The Majorelle garden
    • A day trip to the Ourika valley, an hour away

    Tip

    The train from Casablanca to Marrakesh takes about two and a half hours and leaves hourly. Buy the ticket in the ONCF app the day before and skip the ticket queue.

    Guide: Marrakesh in 3 days

Getting between cities

All by train. Fez-Meknes, 45 minutes; Meknes-Rabat, two and a half hours; Rabat-Casablanca, 50 minutes on Al Boraq; Casablanca-Marrakesh, two and a half hours. Tickets are bought in the ONCF app or at the desk, and second class is very cheap. Inside the medinas, on foot; Casablanca and Rabat have trams.

When to go

March to May and October to November, when all four cities sit between 20 and 28 degrees. In July and August Marrakesh and Fez are very hot, and in January the nights are cold, though the days are sunny.

Frequently asked questions

How many days do you need?

5 days gets you Fez, Meknes and Rabat. 7 adds Marrakesh. 9 also takes in Casablanca and Volubilis.

Do you need a car?

No, and better not to have one: the train links all five cities and cars cannot enter the medinas.

Can you do it the other way round?

Yes: flying into Marrakesh (RAK) and out of Fez (FEZ) or Rabat (RBA) is the same route.

Which airports do you fly to?

Fez (FEZ), Rabat (RBA), Casablanca (CMN) or Marrakesh (RAK). Ryanair and easyJet fly to Fez, Marrakesh and Rabat from several European cities.

Fancy a trip like this?

Tell us where you fly from and which days you're free: we find routes like this one with real flights.

  • Fly into one city and home from another
  • The days you have, from 5 to 15
  • The real price, straight from the airline
  • And your day-by-day itinerary, if you want it
Discover more routes like this at the best price