Some links in this guide are affiliate links. If you book through them, we may earn a commission at no extra cost to you. It never changes what we recommend.
By Worldly Travels Editorial Team · Last verified: November 2026
Quick Answer
The best way to get from Marrakech to Fes is the train. ONCF runs direct trains several times a day, and the trip takes about 6.5–7 hours. Second class costs from roughly 230 MAD, more if you book late or travel first class.
- Cheapest: CTM or Supratours bus, 7.5–9 hours, similar price to a 2nd-class train ticket.
- Fastest door to door: driving the A7/A2 motorway, about 530 km and 5.5–6 hours.
- Best experience: a 3-day Sahara desert tour that starts in Marrakech and ends in Fes, so the long trip becomes part of the holiday.
- Flight: Ryanair flies Marrakech to Fes a few times a week, but with airport time it saves little.
In this guide
Marrakech to Fes: All Options Compared
| Option | Time | Price (approx.) | Best for |
|---|---|---|---|
| Train (ONCF) | 6.5–7 h | From ~230 MAD (2nd class) | Most travellers |
| Bus (CTM, Supratours) | 7.5–9 h | ~150–250 MAD | Tight budgets |
| Car via motorway | 5.5–6 h, 530 km | ~180 MAD tolls + ~450 MAD fuel | Groups, flexibility |
| Car via Middle Atlas | 7–8 h, 620 km | ~520 MAD fuel | A scenic road trip |
| Private driver | 6–7 h | ~2,000–4,000 MAD per car | Families, comfort |
| Flight (Ryanair) | 1 h in the air, ~3 h total | Varies, from ~400 MAD | Short trips, booked early |
| 3-day desert tour | 3 days | From ~1,000 MAD (shared) | Seeing the Sahara on the way |
Prices change with the season and how early you book; check before you travel.
Marrakech to Fes by Train

Is there a train from Marrakech to Fes? Yes. ONCF, Morocco’s national railway, runs direct trains between the two cities, stopping at Casablanca, Rabat and Meknes on the way. The first Marrakech to Fes train leaves very early (around 4:30–7:30 am), so a morning train gets you to Fes by lunch or early afternoon.
| Detail | |
|---|---|
| Journey time | About 6.5–7 hours |
| Stops | Casablanca, Rabat, Kenitra, Sidi Kacem, Meknes |
| 2nd class | From about 230 MAD |
| 1st class | Higher; reserved seat, more space |
| Book on | oncf-voyages.ma, up to 3 months ahead |
Which class to book
Book first class on a train this long. You get a reserved seat in a quieter carriage; in second class you may stand if the train is full, especially on Fridays and holidays.
How to buy tickets
Buy online on the ONCF website (switch it to English at the top), at the station ticket desk, or through a reseller like 12Go if your card is refused. Advance fares are cheaper than flexible ones. Show the ticket on your phone. If the trains are full, book a driver from Marrakech to Fes instead.
The stations
Marrakech station is in the new town (Gueliz), about 10–15 minutes by petit taxi from the medina. Fes station is also in the new town; a taxi to Bab Boujloud and the old medina takes 10–15 minutes. Agree the fare or ask for the meter. Read our Morocco safety guide for common taxi scams.
Tips for the ride
- Bring water and food; the trolley service is limited.
- Charge your phone before you board; not every carriage has sockets.
- Keep your bag above your seat, not at the end of the carriage.
Marrakech to Fes by Bus

CTM and Supratours both run Marrakech to Fes. The bus takes 7.5–9 hours and costs about the same as a second-class train ticket, sometimes less.
- CTM leaves from its own station in Gueliz; some departures run overnight, which saves a hotel night but not much sleep.
- Supratours (run by ONCF) leaves from next to Marrakech train station.
- Buy tickets online or at the station a day ahead. Expect a small fee for each checked bag.
Take the bus only if the trains are full or the price matters most. The train is faster, smoother and has toilets.
Marrakech to Fes by Car or Private Driver

| Route | Distance | Time | Tolls | Stops |
|---|---|---|---|---|
| Motorway (A7 + A2 via Casablanca and Rabat) | ~530 km | 5.5–6 h | ~181 MAD | Few; mostly farmland |
| Middle Atlas (N8/N9 via Beni Mellal, Ifrane) | ~620 km | 7–8 h | Little | Ouzoud Falls, Ifrane, cedar forests |
The motorway is quick and easy. Follow signs for Rabat at the Casablanca ring road, the only tricky part. The Middle Atlas road is slower but more beautiful: stop at the Ouzoud Falls, then drive through the cedar forests near Ifrane, where Barbary macaques sit by the road. Split it over two days if you can. Compare car hire in Marrakech before you go.
A private driver costs about 2,000–4,000 MAD for the car and picks you up at your riad. It is worth it for families or groups of three or four. Compare private transfers from Marrakech to Fes.
Marrakech to Fes via the Sahara: the 3-Day Desert Tour

If you want to see the desert anyway, don’t go to Fes by train and back to Marrakech for a tour. Book a one-way desert tour from Marrakech to Fes instead. You see the Sahara and reach Fes in the same three days.
| Day | Route | Night |
|---|---|---|
| 1 | Tizi n’Tichka pass, Ait Benhaddou, Ouarzazate | Dades Valley |
| 2 | Todra Gorge, camel ride into Erg Chebbi | Desert camp, Merzouga |
| 3 | Sunrise, drive north via Midelt and the Middle Atlas | Fes |
Shared tours cost from about 1,000 MAD per person with two nights, breakfasts and dinners. Day 3 is long, around 8–9 hours on the road. Read our Sahara desert tour from Marrakech guide to choose between 2- and 3-day tours, or see the 3-day desert tour from Marrakech to Fes.
Marrakech to Fes by Plane
Ryanair flies from Marrakech (RAK) to Fes-Saïss (FEZ) a few times a week. The flight is about an hour, but with check-in and transfers the trip takes 3–4 hours. It only pays off if you find a cheap fare and are short on time.
Fes to Marrakech

Everything above works in reverse. Trains from Fes to Marrakech take the same 6.5–7 hours, and the desert tours run Fes to Marrakech too. Start with the desert if you land in Fes; finish with 3 days in Marrakech‘s food stalls.
Tips Before You Go

- Book the train early in spring and autumn, when first class sells out.
- Leave early. Morning departures get you to Fes in daylight, so you can find your riad before dark.
- Ask your riad to meet you at Bab Boujloud; Fes medina addresses are hard to find.
- Get an eSIM before the trip so maps work at both ends: get a Morocco eSIM.
- Plan the whole route with our Morocco itinerary for 7 and 10 days.
Frequently Asked Questions
How long is the train from Marrakech to Fes?
About 6.5–7 hours on a direct ONCF train, with stops in Casablanca, Rabat and Meknes.
How much is the train from Marrakech to Fes?
Second class starts at roughly 230 MAD; first class costs more. Book early on the ONCF website for the lowest fares.
Is there a direct train from Marrakech to Fes?
Yes. Several direct trains run each day, most leaving Marrakech in the early morning.
Is it better to take the train or the bus from Marrakech to Fes?
The train. It is faster, more comfortable and has toilets. The bus is only worth it if trains are full or you want the lowest price.
Can you go from Marrakech to Fes through the desert?
Yes. A 3-day desert tour leaves Marrakech, spends a night in Erg Chebbi near Merzouga, and ends in Fes. See the best places to visit in Morocco on the way.
How far is Fes from Marrakech?
About 530 km by the motorway, or 5.5–6 hours by car.








