Serenity Morocco

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.
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.
| | | |---|---| | 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 |
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.
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.
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.
Be honest about your time and your priorities:
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.
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
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.
Continue your journey through Morocco with these curated reads
Travel PlanningA realistic two-day Fes itinerary: Fes el-Bali's great monuments on day one, palace gates, Mellah, viewpoints and potteries on day two.
Read Article
Travel PlanningHow to plan an Atlas Mountains day trip from Marrakech: Ourika Valley, Imlil, Ouzoud and Ouirgane compared, what to expect, costs, and how to pick the right route.
Read Article
Travel PlanningA realistic 2-day Marrakech itinerary: the medina's great monuments and souks on day one, gardens, palaces and a rooftop sunset on day two, with where to eat.
Read ArticleJoin our community of travel enthusiasts and receive exclusive content, travel tips, and special offers directly to your inbox.
Weekly
Insights
Curated
By Experts
Free
Forever