Discovering...
Discovering...

Morocco's imperial cities are strung along one of Africa's best rail networks, so you can see most of the country without ever renting a car. This 9-day plan runs Tangier to Marrakech on ONCF and Al Boraq trains, city to city. Below: a day-by-day rail plan with times and fares, what trains can and can't reach, and station tips.
Trip length
9 days / 8 nights, all by rail
Cities linked
Tangier, Fes, Meknes, Rabat, Casablanca, Marrakech
Operator
ONCF (Al Boraq high-speed + Al Atlas)
Al Boraq speed
Tangier–Casablanca in ~2 hours
Typical 2nd-class fare
~40–200 MAD per intercity leg (approx.)
Longest single ride
Casablanca → Marrakech, ~3 hours
Not on the rails
Sahara, Chefchaouen, Essaouira, Volubilis
Booking
ONCF app or station counters; reserve high-speed ahead
Best months
March–May, September–November
Flights
Into Tangier (TNG), out of Marrakech (RAK)
Amelia Hart· Itineraries & Trip Planning Editor
British writer who has built and road-tested Morocco itineraries for everyone from honeymooners to families. She covers multi-day routes, costs, the best time to visit and how to plan a first trip. Casablanca · 9+ years covering Morocco
Published 25 September 2025 Last updated 15 July 2026
Most first-time visitors assume they need a car or a driver, but the country's core sights — its imperial cities and its two biggest hubs — sit on a single, modern rail spine. ONCF runs punctual, comfortable, air-conditioned trains, and since 2018 the Al Boraq high-speed line has connected Tangier to Casablanca in about two hours, the first bullet train in Africa. For a city-focused trip you simply do not need to drive, and you skip the stress of medina parking entirely.
The trade-off is honest: trains reach cities, not the wilderness. The Sahara, the blue town of Chefchaouen and the coast at Essaouira are all off the network, so a pure rail trip focuses on Tangier, Fes, Meknes, Rabat, Casablanca and Marrakech. That is still a superb week-plus of travel, and you can bolt on a guided desert tour from either end. Rail expansion is also a national priority ahead of 2030 — see the high-speed rail plans that will extend the line to Marrakech.
The route runs top to bottom so you never backtrack: arrive in Tangier, work south through Fes and Meknes, then the capital corridor of Rabat and Casablanca, and finish in Marrakech before flying home. Every intercity move is a train; the only non-rail hops are your airport transfers and a taxi out to the Roman ruins of Volubilis from Meknes. Give Fes and Marrakech two nights each — they are the deepest medinas — and keep the capital corridor brisk.
Shape your city days with our timed plans for Fes and Rabat, and save room for Marrakech's food, mapped at RestaurantsMarrakesh. The fares below are approximate second-class prices for mid-2026; first class costs a little more for a reserved, roomier seat.
| Day | Train leg | Time | Fare (approx.) |
|---|---|---|---|
| 1 | Arrive Tangier (fly or ferry in); explore | — | — |
| 2 | Tangier → Fes; afternoon in the medina | ~3.5–4 h | ~150–200 MAD |
| 3 | Fes el-Bali: full medina day | — | — |
| 4 | Fes → Meknes day trip; Volubilis by taxi | ~40 min | ~25–40 MAD |
| 5 | Meknes/Fes → Rabat; capital sights | ~2.5 h | ~90–120 MAD |
| 6 | Rabat → Casablanca; Hassan II Mosque | ~1 h | ~40 MAD |
| 7 | Casablanca → Marrakech; medina evening | ~3 h | ~140–200 MAD |
| 8 | Marrakech: palaces, souks, gardens | — | — |
| 9 | Marrakech at leisure, fly out (RAK) | — | — |
Being clear-eyed about the network's limits saves disappointment. The imperial cities and coastal hubs are all covered; the desert, mountains and smaller coastal towns are not. Where a highlight sits off the rails, there is almost always a bus, shared grand taxi or organised tour to bridge the gap — the Sahara, for instance, is best added as a guided desert tour from Marrakech or Fes at either end of this trip.
The table sorts the big-ticket destinations into what a train delivers you to directly and what needs a connection. Treat it as a planning filter: if your must-see list is mostly in the left column, a rail trip is perfect; if it leans right, you will want a driver for part of the journey.
| On the railway | Off the railway (needs bus/taxi/tour) |
|---|---|
| Tangier, Fes, Meknes | Chefchaouen (bus/grand taxi from Fes/Tangier) |
| Rabat, Casablanca | Essaouira (bus from Marrakech) |
| Marrakech | Merzouga/Sahara (guided tour) |
| Kenitra, Sidi Kacem junctions | Volubilis (taxi from Meknes) |
| Airport stations (CMN, RAK) | Atlas villages, Ouarzazate, the gorges |
The one thing trains don't do is drop you inside a medina. Most stations sit in the modern ville nouvelle a short petit-taxi ride from the old city, so budget a few dirham and 10–20 minutes at each end. Insist on the meter in petit taxis, or agree a fare first; queues at station ranks are usually orderly. Marrakech and Fes stations are modern and well signed, with cafés, ATMs and SIM-card kiosks on site.
The capital corridor is the easiest of all: Rabat and Casablanca have central stations (Rabat Ville, Casa-Voyageurs and Casa-Port) within walking distance or a short tram ride of the main sights, and the Casablanca-to-Rabat hop runs several times an hour. The table gives a rough sense of each station's distance from the old town.
| City | Main station | To medina/old town |
|---|---|---|
| Tangier | Tanger Ville | ~3 km, 10 min taxi |
| Fes | Fès (Gare) | ~3 km, 10–15 min taxi to Bab Boujeloud |
| Meknes | Meknès / El Amir Abdelkader | ~2 km, short taxi |
| Rabat | Rabat Ville | ~1 km, walkable to medina |
| Casablanca | Casa-Voyageurs / Casa-Port | Casa-Port near the old medina |
| Marrakech | Marrakech (Gare) | ~2.5 km, 10–15 min taxi to Jemaa el-Fnaa |
Moroccan rail is a bargain by European standards. Conventional Al Atlas trains sell first and second class; second is perfectly comfortable and cheap, while first buys a reserved, roomier seat worth having on the longer Casablanca–Marrakech run. Al Boraq high-speed trains have their own two classes and are best reserved ahead, as popular departures sell out. You can buy everything through the ONCF app or at station counters.
Point-to-point tickets suit a trip like this better than any pass, since fares are low and the legs are few. If you plan to extend south beyond the current network, note that the Rabat-to-Marrakech rail journey still routes via Casablanca for now, with the high-speed extension to Marrakech under construction. For the practical app kit that makes car-free travel smooth, see our Morocco travel apps guide.
This plan is a template, not a straitjacket. Short on time? Drop Tangier and start in Fes, or compress the capital corridor into a single day, treating Rabat as a half-day stop between Fes and Casablanca. Have longer? Add two nights and bolt a guided Sahara tour onto the Marrakech end, returning by train, or add Essaouira as a bus excursion from Marrakech. The rail spine stays the same; you just lengthen or shorten the ends.
For travellers who want the desert and the mountains as well as the cities, a car-free core plus targeted tours is often the best of both worlds — you keep the ease of the train for the long flat legs and hire expertise only where the rails stop. If you would rather see the whole country slowly, our 3-week grand tour mixes trains, a driver and time to spare.
A few habits make a rail trip smoother and cheaper. Buy your high-speed Al Boraq legs a day or two ahead through the ONCF app to secure a seat and the best fare, but treat conventional Al Atlas services as turn-up-and-go in second class. First class is worth the small premium only on the longest ride, Casablanca to Marrakech, where a reserved, roomier seat earns its keep on a three-hour journey through the plains.
Timing matters as much as class. Friday evenings and Sunday afternoons see heavy domestic travel, so avoid moving cities then if you can. Keep small change for station taxis and snacks, note that long-distance southern trains usually use Casa-Voyageurs rather than Casa-Port, and always double-check the platform, as departures occasionally change. None of this is complicated, but it turns a good rail trip into a seamless one.
Yes, very easily for a city-focused trip. The ONCF rail network links Tangier, Fes, Meknes, Rabat, Casablanca and Marrakech with punctual, air-conditioned trains, including the Al Boraq high-speed line. You only need a bus, shared taxi or organised tour for places off the rails, such as the Sahara, Chefchaouen or Essaouira. Medina parking headaches disappear entirely.
About two hours on Al Boraq, Africa's first high-speed line, which opened in 2018 and runs via Kenitra. It transformed the northern corridor, cutting what was a long conventional journey to a quick, comfortable ride. Onward to Marrakech is a further three hours or so on a conventional Al Atlas train, changing or continuing at Casablanca.
Second-class intercity fares are low — roughly 40 to 200 MAD depending on distance, so most legs on this itinerary cost a few euros or dollars. First class and Al Boraq high-speed cost a little more for reserved, roomier seats. Buy through the ONCF app or at station counters; point-to-point tickets are better value than any pass for a short trip. Prices are approximate for mid-2026.
No. There is no railway to the desert; the network stops at Marrakech and Fes. The usual approach is to take the train to either city and join a guided multi-day desert tour to Merzouga from there, then return by train. A car-free traveller can still reach the dunes comfortably this way, using rail for the long legs and a tour for the desert.
Not directly — the blue city is not on the rail network. The usual route is to take a train to Fes or Tangier and then a CTM bus or shared grand taxi to Chefchaouen, about four hours from Fes or two from Tangier. Many rail travellers add it as a bus detour at the start of a north-to-south trip.
No; stations sit in the modern part of each city, a short petit-taxi ride from the old town. Budget a few dirham and 10 to 20 minutes at each end, and insist on the meter or agree a fare first. Rabat is the exception — its central station is within walking distance of the medina — and Casablanca's Casa-Port station is close to the old medina.
For high-speed Al Boraq services, yes — reserve a day or two ahead, as popular departures and weekend trains sell out. Conventional Al Atlas trains are turn-up-and-go with no reservation needed in second class, though first class seats can be booked. The ONCF app makes advance booking simple and lets you store tickets on your phone.
Around nine days comfortably covers the six main rail cities with two nights each in Fes and Marrakech. You can compress it to a week by trimming Tangier or the capital corridor, or extend it by adding a guided Sahara tour or an Essaouira bus excursion. The rail spine stays the same; you simply adjust the length of your stays.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,011Sahara Desert Luxury Expedition
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete
Practical Guides
How to travel Rabat to Marrakech by train, with routes, durations, fares and how it compares to bus and driver.
Read guidePractical Guides
The frequent Casablanca-Rabat hop by train and grand taxi, with durations, fares and airport connections.
Read guidePractical Guides
How to cover the long Tangier-Marrakech journey by train, bus, flight or driver, with times, costs and break points.
Read guidePractical Guides
An hour-by-hour route through Fes el-Bali covering the tanneries, medersas, souks and a sunset viewpoint.
Read guidePractical Guides
A timed one-day capital route through the Oudaias, Hassan Tower, Chellah and the medina, with a train-day version.
Read guidePractical Guides
A well-paced 21-day grand tour covering imperial cities, the north, coast, Atlas and Sahara, week by week.
Read guide