There are three real ways to travel from Marrakech to Fes: the train (around 7 hours via Casablanca and Rabat, comfortable and cheap), a direct drive across the Middle Atlas (6–7 hours), or the desert route — 3 to 4 days over the High Atlas, through the gorges, with a Sahara camp night at Merzouga before turning north to Fes. If you only need to change cities, take the train. If you have three days to spare, the desert route is not a detour — it's the single best-value stretch of travelling in Morocco, and it's how most of our guests make this journey.
Option 1: The Train — Simple and Cheap
Morocco's trains are better than most visitors expect. The Marrakech–Fes run goes via Casablanca and Rabat in around 7 hours; first class costs roughly $30–40, is air-conditioned, and sells reserved seats worth booking a day or two ahead in high season. It's the right choice when your itinerary treats the two cities as separate chapters and the desert isn't on the menu this trip. The honest downside: the route runs through Morocco's flat industrial corridor — you arrive rested, having seen almost nothing.
Option 2: The Direct Drive — Rarely Worth It
A private transfer straight across the Middle Atlas via Beni Mellal takes 6–7 hours and costs more than the train for a view that's pleasant rather than spectacular. We drive it when a schedule demands it, and that's the only time I'd recommend it. If you're paying for a car and a driver anyway, the same money pointed south buys you the version of this journey people fly across the world for.
Option 3: The Desert Route — the One I'd Choose
Day one climbs the Tizi n'Tichka pass out of Marrakech and drops past Aït Ben Haddou — the mud-brick fortress you've seen in a dozen films — into the Skoura palm groves. Day two runs the Todra Gorge's 300-metre canyon walls and reaches Merzouga by late afternoon: camels out to the dunes, sunset from the sand, dinner and drums at camp under more stars than you've ever seen. Day three (or four, at a kinder pace) turns north up the Ziz Valley's river of palms, over the cedar forests of the Middle Atlas — Barbary macaques included — through alpine-looking Ifrane, arriving in Fes by evening. Every kilometre is new; nothing repeats.
This is exactly the shape of our 4-day Marrakech to Fes desert tour, and the desert leg of the 7-day Marrakech to Fes itinerary for travellers giving the route the full week. Wilder tastes can even make the crossing via Erg Chigaga on the 6-day desert crossing — same two endpoint cities, a much emptier Sahara in between.
Which Direction Is Better?
The route works identically in both directions, so let flights decide — fly into one city, out of the other, and never backtrack. If you have the choice, I'd start in Marrakech and end in Fes: Marrakech is the easier city to land in jet-lagged, and Fes rewards the version of you that's already found its Morocco feet. Either way, plan the desert night for the middle — and check the season before you lock dates; the dunes have strong opinions about July.
The Practical Numbers
- Train: ~7 hours, $30–40 first class, book a day ahead in high season
- Direct private transfer: 6–7 hours' driving, from ~$150–250 per vehicle
- Desert route: 3–4 days, from ~$150–400 per person on a shared tour including the camp night — see the cost guide for what moves the price
Full budgeting detail — including what's bundled in tour prices and what never is — lives in our Morocco travel cost guide. And if you're still sketching the whole trip, how many days do you need in Morocco answers the bigger question this route sits inside.
Planning a Morocco tour? Browse our tours
See all tours →Quick answers
About 530 km by road. The train takes around 7 hours via Casablanca and Rabat; a direct drive across the Middle Atlas takes 6–7 hours; the desert route via Merzouga spreads the journey over 3–4 days.
Yes — ONCF runs direct trains taking around 7 hours via Casablanca and Rabat. First class (~$30–40) has reserved air-conditioned seats and is worth the small premium; book a day or two ahead in high season.
If you have 3–4 days, overwhelmingly yes — it converts a transfer into the highlight of the trip: Aït Ben Haddou, the Todra Gorge, a Sahara camp night at Merzouga and the Ziz Valley, with no repeated kilometres.
Yes — 6–7 hours via Beni Mellal across the Middle Atlas. It's the least interesting of the three options: more expensive than the train, and it skips everything that makes the southern route famous.
Either works; let flight prices decide. Given the choice, land in Marrakech — it's the easier city to arrive in jet-lagged — and end in Fes, which rewards travellers who've already found their feet in Morocco.
Domestic connections exist but usually route through Casablanca, taking half a day door to door once airport time is counted — rarely worth it over the direct train unless timing is critical.


