How to get from Marrakech to Fes: the 7-hour train via Casablanca, a private drive via Beni Mellal, or the scenic 2–3 day route through the Sahara. Compared.
Written by the Serenity Morocco editorial team · Reviewed by Amina El-Fassi, Imperial Cities & Cultural Immersion
Last reviewed
Get Morocco Travel Insights
Marrakech to Fes is the classic Moroccan dilemma: two of the country's great imperial cities sit about 530 km apart by road, and how you connect them shapes your whole trip. You can cover the distance fast by train, drive it directly in a day through the Middle Atlas, or — the option most travellers wish they'd known about — turn the journey into a two- or three-day adventure across the Sahara. This guide lays out the three real routes from Marrakech to Fes, with honest times, trade-offs and who each one suits.
#At a Glance
| | | |---|---| | The three routes | Train via Casablanca; private drive via Beni Mellal; 2–3 day Sahara crossing | | Fastest | Train — about 7 hours, changing at Casablanca | | Most scenic short option | Private drive via Beni Mellal and Ifrane (a long day) | | Best experience | The 2–3 day Sahara route via Aït Benhaddou, the dunes and Todra Gorge | | Direct road distance | Roughly 530 km (around 8–9 hours of driving) | | Our verdict | Take the desert route if you have the days — it turns transit into the trip |#Option 1: The Train via Casablanca
The ONCF train is the simplest, cheapest way to move between the two cities. There's no direct high-speed line between Marrakech and Fes; the journey runs up the line to Casablanca and on across the north, typically taking around 7 hours with a change at Casablanca Voyageurs (some services connect more smoothly than others). The distance by rail is roughly 390 km.- Time: about 7 hours, including the change.
- Cost: second class from around 220 MAD, first class from around 330 MAD (confirm current fares).
- Frequency: several departures a day; morning trains from Marrakech arrive in Fes by evening.
#Option 2: The Private Drive via Beni Mellal
If you'd rather go door-to-door on your own schedule, a private car and driver covers the direct inland route in a single (long) day. The road climbs through farmland to Beni Mellal, skirts the Middle Atlas, and passes near the cedar-forested resort town of Ifrane — the "Switzerland of Morocco" — before dropping into Fes. Reckon on 8–9 hours of driving plus stops.- Time: a full day, roughly 8–9 hours moving.
- Scenery: rolling farmland, the Middle Atlas, Ifrane's alpine air and the cedar forests where Barbary macaques live.
- Flexibility: stop where you like — a waterfall, a lunch, a viewpoint.
#Option 3: The 2–3 Day Sahara Crossing
Here's the route seasoned Morocco travellers recommend: instead of rushing between the cities, cross the desert and let the journey become the highlight. Heading south and east from Marrakech, you climb the High Atlas over the Tizi n'Tichka pass, visit the UNESCO ksar of Aït Benhaddou, overnight near the Sahara dunes of Merzouga or Zagora, then loop north through the Todra Gorge and the Ziz Valley to reach Fes from the south.- Time: 2 days minimum; 3 days is far better paced.
- Highlights: Tizi n'Tichka, Aït Benhaddou, Ouarzazate's film studios, a night under the stars in a desert camp, Todra Gorge, palm oases.
- Why it wins: you see the Atlas, the kasbahs and the Sahara — and still end up in Fes.
#Which Should You Choose?
Be honest about your time and your priorities:- Tight schedule, cities only: take the train. Efficient, cheap, low-effort.
- One day, want some scenery and door-to-door comfort: the private drive via Beni Mellal.
- Two or three days to spare: the Sahara crossing, every time. It's the difference between transit and a trip.
#Practical Tips
- Book the train ahead in summer. Popular departures fill up; reserve seats where you can.
- Start the private drive early. An 8–9 hour day is far nicer begun at dawn with stops than rushed at dusk.
- Don't try the Sahara route in under two days. It's a lot of driving; squeezing it shorter undoes the point.
- Build in a buffer. Whichever way you travel, avoid arriving the same evening you have onward plans.
#FAQ
How long does the train take from Marrakech to Fes? About 7 hours, including a change at Casablanca Voyageurs — there's no direct high-speed line between the two cities. Second class costs from around 220 MAD and first from around 330 MAD; confirm current fares when booking. How far is Marrakech from Fes by road? Roughly 530 km by the direct inland route, which takes about 8–9 hours of driving via Beni Mellal and Ifrane. The scenic Sahara route covers more ground and is best spread over two or three days. What's the best way to travel from Marrakech to Fes? It depends on your time. The train is fastest and cheapest; a private drive is most flexible for a single day; and the 2–3 day Sahara crossing is the best overall experience, taking in the Atlas, Aït Benhaddou and the dunes. Can you fly from Marrakech to Fes? Domestic flights occasionally connect the two, but with check-in, transfers and limited schedules the time saving over the train is small. Most travellers take the train or turn the journey into a desert tour instead. Is the Sahara route from Marrakech to Fes worth it? For most first-time visitors, yes — it converts a dead transit day into the trip's highlight, with the High Atlas, Aït Benhaddou, the Merzouga dunes and Todra Gorge along the way. Allow at least two days, ideally three.#Make the Journey the Trip
The smartest way to connect Marrakech and Fes is to stop treating it as transit. Our desert tours from Marrakech and Marrakech to Sahara journeys end in Fes via the Atlas, Aït Benhaddou and the dunes, with a private driver and desert camp handled throughout — see the Marrakech desert tours range or our Marrakech to Fes transfer for the faster option. Browse all our tours, or design a private Morocco trip that links both cities your way.Share this article
Ready to experience Travel Planning for yourself?
Skip the guesswork. Tell us what you love and our Morocco specialists will design a private, bespoke itinerary — with a free quote and zero obligation.



