Getting from Marrakech to Fes is the longest single hop on almost every classic Morocco itinerary—and the route where bad planning costs you an entire vacation day. Because the High and Middle Atlas mountain ranges sit right between the two imperial capitals, there is no short straight highway connecting them.
You have four real ways to travel from Marrakech to Fes in 2026–2027, and each one suits a completely different type of trip:
- Take the direct ONCF train if you want the easiest, lowest-stress point-to-point day (6h 30m–6h 45m, 230–320 MAD in 2nd class or 330–460 MAD in 1st class).
- Fly direct on Ryanair if you are short on time and your dates match one of the ~5 weekly non-stop flights (1h 05m in the air, ~4h door-to-door, base fares from 180–450 MAD before bags).
- Book a 3-day Marrakech to Fes desert tour if you plan to see the Sahara anyway—turning a long transfer into the highlight of your trip via Ait Ben Haddou, Todra Gorge, and Erg Chebbi.
- Drive yourself along the A7/A1/A2 toll motorways (5h 30m–6h) or across the scenic N8 mountain road through Beni Mellal, Azrou, and Ifrane (7h–7h 30m).
Below is the exact ground-level breakdown of Marrakech to Fes distances, train stops, flight schedules, road conditions, desert transfer math, and how to link Chefchaouen onto the northern end of the loop.

Quick-Answer Comparison: Marrakech to Fes Transport Options (2026–2027)
Look at actual door-to-door timing—not just flight or highway estimates—before locking in your route:
| Transport Method | Actual Travel Time | Distance | Typical 2026–2027 Cost (MAD / USD / EUR) | Direct? | Best Fit |
|---|---|---|---|---|---|
| ONCF Train (Al Atlas) | 6h 30m – 6h 45m | ~565 km (rail loop via coast) | 230–320 MAD (2nd) / 330–460 MAD (1st) (~$23–$46) | Yes (Hourly direct trains) | Best all-around balance of price, legroom, and city-center arrival. |
| Direct Flight (Ryanair RAK → FEZ) | 1h 05m air (~3h 45m–4h 30m door-to-door) | 386 km (240 miles) | 180–550 MAD base fare + 200–400 MAD for cabin/checked bag (~$35–$85 total) | Yes (~5 days/week) | Travelers tight on days who pack light and match flight days. |
| 3-Day Sahara Desert Tour | 3 Days / 2 Nights (~17–18h total driving spread over 3 days) | ~870–1,040 km (via Merzouga) | 950–1,600 MAD (shared group) / 2,400–5,500+ MAD (private/luxury) | Yes (Riad to Riad) | Anyone planning to visit the Sahara Desert—saves doubling back to Marrakech! |
| Self-Drive / Private Car (Motorway) | 5h 30m – 6h 00m | ~530 km (330 miles) | Rental 300–450 MAD/day + ~650 MAD fuel & tolls; Private driver 2,000–3,000 MAD/car | Yes | Groups of 3–4 or road-trippers with stops in Rabat or Meknes. |
| Self-Drive (Scenic N8 Mountain Road) | 7h 00m – 7h 30m | ~485 km (301 miles) | Rental + ~500 MAD fuel (0 MAD tolls) | Yes | Confident drivers wanting Beni Mellal, Azrou cedar forests, and Ifrane. |
| CTM / Supratours Coach Bus | 7h 30m – 9h 00m | ~485–530 km | 170–240 MAD (~$17–$24) + 5–10 MAD luggage tag | Yes | Backup option if trains sell out during Moroccan Eid holidays. |
Marrakech to Fes Distance: Why Every Route Has a Different Number
People looking up the Marrakech to Fes distance often get confused when Google Maps shows three totally different numbers. Here is why:
- Straight-Line Flight Distance: 386 km (240 miles) flying straight over the Middle Atlas peaks.
- Inland Mountain Road (N8 via Beni Mellal & Azrou): 485 km (301 miles). Shortest on paper, slowest in real life due to two-lane mountain curves, trucks, and town speed limits.
- Coastal Toll Motorway (A7 → A1 → A2 via Casablanca & Rabat): 530 km (330 miles). Longer in kilometers, yet 90 minutes faster because you cruise at 120 km/h on smooth, divided highways almost the entire way.
- Rail Distance (ONCF Track): 565 km (351 miles) curving west toward Casablanca and Rabat before cutting east through Meknes to Fes.
- Sahara Desert Route (via Ouarzazate & Merzouga): Roughly 870 to 1,040 km depending on detours into Dades Valley and Todra Gorge.
Option 1: Marrakech to Fes Train (Time, Stops & Tickets)
Unless you are crossing the Sahara Desert on the way, the Marrakech to Fes train is the smartest choice for 80% of travelers. Morocco's national railway (ONCF) runs direct Al Atlas express trains between the two cities roughly every hour from 5:50 AM until 7:00 PM. No train changes, no baggage fees, and you step right out in downtown Fes.

Marrakech to Fes Train Time & Schedules
- Standard Duration: 6 hours 30 minutes to 6 hours 45 minutes.
- First Train Out of Marrakech: Around 5:50 AM (arriving in Fes around 12:20 PM).
- Best Mid-Morning Departures: 7:50 AM, 8:50 AM, or 9:50 AM—giving you a relaxed riad breakfast in Marrakech and putting you inside Fes in full daylight around 2:30 PM to 4:30 PM.
- Last Direct Train: Around 7:00 PM (arriving past 1:20 AM—avoid this one unless you pre-booked a Fes riad airport/station pickup).
Marrakech to Fes Train Stops (Full Route List)
Travelers searching for Marrakech to Fes train stops often wonder if they can break up the 6.5-hour ride with a half-day stopover. Here is the exact sequence of stations the direct Al Atlas calls at heading north and east:
- Marrakech (Departure — Gueliz)
- Benguerir
- Settat
- Berrechid
- L'Oasis (Southern Casablanca)
- Casa-Voyageurs (Main Casablanca hub — train reverses/pauses ~5–10 mins)
- Mohammedia (Coastal industrial/beach town)
- Rabat Agdal & Rabat Ville (Morocco's capital — great stopover option!)
- Salé Ville / Salé Tabriquet
- Kenitra
- Sidi Kacem (Rail junction)
- Meknes (Imperial city — 40 mins before Fes, gateway to Volubilis)
- Ain Taoujdate (Select trains)
- Fes (Gare de Fes in Ville Nouvelle)
Smart Stopover Idea: Because the train cuts straight through Rabat Ville (about 3.5 hours into the ride), you can break the journey up by spending one night in Rabat or stopping for 4 hours in Meknes instead of sitting on a train for 6.5 hours straight.
Practical Survival Tips for the 6.5-Hour Ride
- Pay the Extra $10 for 1st Class: On a 6.5-hour journey, 1st Class (~330–460 MAD) gives you a guaranteed assigned seat in a quieter 6-seat glass compartment (or wide 2+1 open car) with stronger air conditioning and decent luggage rack space. In 2nd Class (~230–320 MAD), seats are tighter and frequently fill up around Casablanca and Rabat.
- Pack Your Own Lunch & Water Before Boarding: Do not rely on the onboard snack cart. Sometimes it runs out of sandwiches halfway past Casablanca, and options are limited to packaged biscuits, chips, and instant coffee. Pick up pastries, fruit, sandwiches, and two 1.5L water bottles near Gare de Marrakech before you board.
- Where to Book: Buy directly on
oncf-voyages.ma(up to 60 days ahead for cheaper Yalla promo fares) or at the Marrakech station touchscreen kiosks. (Hit a foreign card error on the ONCF website? Read our troubleshooting walkthrough in How to Book Trains in Morocco). - Arriving at Gare de Fes: Fes train station sits in the modern Ville Nouvelle, about 10–15 minutes by red petit taxi from Bab Bou Jeloud (the Blue Gate into Fes el-Bali). Metered daytime fare is 15–25 MAD (drivers outside the station often ask 40–50 MAD flat if you have big suitcases).
Option 2: Marrakech to Fes Flight (Airlines, Time & Reality Check)
Searching for a Marrakech to Fes flight pulls up one big surprise for 2026–2027: Ryanair now dominates the direct route between Marrakech Menara (RAK) and Fes-Saïss (FEZ) after Air Arabia Maroc ended its direct service.

Marrakech to Fes Flight Time & Airlines
- Direct Airline: Ryanair operates roughly 5 direct flights per week (schedules shift slightly by season, often departing early morning around 6:10 AM–7:40 AM or early afternoon).
- Direct Flight Time: Just 1 hour 05 minutes gate-to-gate!
- Connecting Flights (Royal Air Maroc): Royal Air Maroc does not fly non-stop between Marrakech and Fes—every RAM flight routes north via Casablanca (CMN), turning a 1-hour hop into a 4- to 7-hour layover costing 1,000–1,800 MAD. Skip RAM on this specific leg.
The Hidden Catch: Is Flying Actually Faster Than the Train?
On paper, 1 hour 05 minutes crushes a 6.5-hour train. In real life, calculate the full door-to-door clock:
- Marrakech Riad to RAK Airport: 20–30 minutes + arrive 2 hours early (Marrakech Menara security and boarding pass stamping queues move notoriously slowly!).
- Flight Time: 1 hour 05 minutes.
- Wait for Bags & Taxi from Fes-Saïss Airport (FEZ) into Town: FEZ sits 15 km south of Fes—allow 30–40 minutes and 150–200 MAD for an official airport grand taxi (or 20 MAD for local Bus #16 to the train station, which runs irregularly).
Total Door-to-Door Flight Time: ~4 hours 15 minutes. Real Total Cost: A cheap 190 MAD (€18) Ryanair base fare quickly jumps to 550–850 MAD (€50–€80) once you add a 10 kg overhead cabin bag or 20 kg checked suitcase, plus 250–300 MAD in airport taxis at both ends.
Bottom Line on Flying: Fly Ryanair if your dates line up, you travel carry-on only, and you would rather save 2.5 hours than watch the countryside from a train window. Remember one strict Morocco airport rule: even on domestic flights, Ryanair requires a physical printed paper boarding pass stamped at the Marrakech airport check-in desk (mobile boarding passes alone are routinely turned back at Moroccan security checkpoints!).
Option 3: Marrakech to Fes Desert Tour (The Smartest 3-Day Move)
If the Sahara Desert is already on your bucket list, do not take a 3-day round-trip desert tour from Marrakech back to Marrakech, only to spend another whole day taking a train to Fes. That wastes 15+ hours sitting in vehicles!
Instead, book a one-way Marrakech to Fes desert tour (3 days / 2 nights—or 4 days if you want a slower pace). You start in Marrakech, cross the High Atlas Mountains, sleep under the stars in the Erg Chebbi dunes of Merzouga, and finish directly at your riad door in Fes on Day 3.

What the Classic 3-Day Marrakech to Fes Desert Route Looks Like
- Day 1 (Marrakech → Dades Valley / Tinghir — ~320 km / 5.5–6h driving): Climb over the dramatic Tizi n'Tichka Pass (2,260m), walk through the UNESCO mud-brick ksar of Ait Ben Haddou, pass Ouarzazate and the Valley of the Roses, and sleep in a gorge-side guesthouse in Dades or Tinghir.
- Day 2 (Dades Valley → Todra Gorge → Merzouga Sahara — ~260 km / 4.5h driving): Walk beneath the 300-meter limestone cliffs of Todra Gorge, drive through palm oases to Merzouga, mount camels (or hop in a 4x4) across the towering orange dunes of Erg Chebbi for sunset, and spend the night at a desert camp with dinner and Berber drumming.
- Day 3 (Merzouga → Ziz Valley → Midelt → Azrou → Ifrane → Fes — ~465 km / 7–7.5h driving): Watch sunrise over the dunes, eat breakfast, then drive north through the palm-filled Ziz Valley, stop for lunch in apple-growing Midelt, spot wild Barbary macaques in the Azrou Cedar Forest, pass through alpine-style Ifrane, and arrive in Fes around 5:00 PM–6:30 PM.
Real 2026–2027 Desert Tour Prices (Per Person)
- Shared Budget Minibus Tour (12–17 travelers): 950 to 1,600 MAD ($95–$160 / €90–€150). Includes transport, Dades hotel, standard/mid desert camp, 2 dinners, and 2 breakfasts. (Lunches, drinks, Ait Ben Haddou local guide ~30 MAD, and driver tips are extra).
- Small-Group / Luxury Camp Upgrade: 1,800 to 2,800 MAD ($180–$280)—upgrades you to a private en-suite tent with hot showers and flush toilets in Erg Chebbi.
- Private 4x4 / Minivan with English-Speaking Driver: 3,800 to 6,500 MAD ($380–$650) per person (based on 2 travelers; cheaper per person for groups of 3–4). Worth every dirham if you hate rigid group stops and tourist-trap carpet shop detours.
(Not sure what warm clothes to pack for freezing Sahara nights? Check our seasonal checklist in What to Pack for a Trip to Morocco).
Option 4: Marrakech to Fes Drive (Motorway vs. Mountain Route)
Renting a car for the Marrakech to Fes drive gives you total freedom to stop at waterfalls, Roman ruins, and cedar forests—just know which of the two roads you are choosing before pulling out of the rental lot.

Route A: The Fast Coastal Toll Motorway (A7 → A1 → A2)
- Route: Marrakech → Settat → Casablanca Bypass → Rabat Bypass → Meknes → Fes.
- Distance & Time: ~530 km, 5 hours 30 minutes to 6 hours of steady driving.
- Tolls & Fuel: Expect roughly 210–230 MAD in cash/card motorway tolls plus 450–550 MAD in diesel/petrol.
- Driving Difficulty: Easy. Modern 2- and 3-lane tarmac, bright signage, and clean Afriquia/Shell rest plazas every 50 km. Watch out for mobile police radar traps near highway exits and toll booths—stick strictly to posted speed limits (120 km/h on motorways, dropping rapidly to 100/80/60 km/h approaching toll gates).
Route B: The Scenic Middle Atlas Mountain Drive (N8)
- Route: Marrakech → El Kelaa des Sraghna → Beni Mellal (optional detour to Ouzoud Waterfalls) → Khenifra → Azrou → Ifrane → Fes.
- Distance & Time: ~485 km, 7 hours to 7 hours 30 minutes without long stops.
- Tolls: 0 MAD (free national highway).
- Driving Difficulty: Moderate. Winding mountain passes, slow trucks climbing hills, local town traffic, and occasional winter snow/fog around Azrou and Ifrane between December and February. Only drive this route in full daylight—never after dark when unlit donkeys, cyclists, and pedestrians share the road shoulder.
One-Way Rental Fee Warning: Almost all Moroccan rental agencies (Hertz, Avis, Sixt, Local agencies) charge a one-way drop-off fee of 600 to 1,500 MAD ($60–$150) if you pick up a car in Marrakech and drop it off in Fes. Factor that into your math before choosing a rental over a private driver!
Completing the Classic Loop: Adding Chefchaouen & The Sahara
Many travelers start with the full loop question: "How can I travel between Marrakech, Fes, Chefchaouen, and the Sahara?" Because Chefchaouen has no train station and no airport, the order in which you connect these four places determines whether you breeze through Morocco or spend half your trip backtracking.

The Single Best Route Order (Zero Backtracking!)
Fly into Marrakech (RAK) and out of Tangier (TNG) or Casablanca (CMN)—open-jaw flights save you an entire day of backtracking:
- Days 1–3: Marrakech (Explore souks, palaces, optional day trip to Essaouira or Atlas).
- Days 4–6: Marrakech → Sahara Desert (Merzouga) → Fes (One-way 3-day desert transfer tour).
- Days 7–8: Fes (Explore Fes el-Bali medina, tanneries, and Volubilis/Meknes).
- Days 9–10: Fes → Chefchaouen (Move north into the Rif Mountains).
- Day 11: Chefchaouen → Tangier (2.5 hours by CTM bus or grand taxi; fly home from Tangier OR ride the 2h 10m Al Boraq high-speed train south to Casablanca Airport).
(Still working out your total trip length? Read our itinerary planner on How Many Days Do I Need to Explore Morocco?).
How to Get from Fes to Chefchaouen (2026–2027)
- CTM Coach Bus (Best Value): 3 to 4 direct buses daily from the Fes CTM station (Ville Nouvelle). Takes 4 hours to 4 hours 30 minutes, costs 90–115 MAD (~$9–$11.50) plus 5–10 MAD for your suitcase. Book 2 to 3 days ahead on
ctm.ma—this popular mountain route sells out regularly in spring and autumn! - Private Driver / Shared Grand Taxi: Takes 3 hours 15 minutes to 3 hours 45 minutes along the scenic N13/N2 road. A private air-conditioned sedan costs 1,200 to 1,600 MAD ($120–$160) per car (great for 3–4 people splitting the fare, especially if you want to stop at Volubilis Roman Ruins along the way). (Explore the Blue City in our Chefchaouen Travel Guide).
Do's and Don'ts: Planning Your Marrakech to Fes Transfer
| Do | Don't |
|---|---|
| Book a one-way Marrakech to Fes desert tour if you plan to visit the Sahara anyway | Book a round-trip Sahara tour back to Marrakech and then waste another 7 hours going to Fes |
| Choose 1st Class on the 6.5-hour ONCF train and pack your own sandwiches and water | Assume the train snack trolley will have full hot meals available past Casablanca |
| Print a paper boarding pass and arrive 2 hours early if flying Ryanair RAK → FEZ | Show up at Marrakech Menara Airport 60 minutes before takeoff with only a phone QR code |
| Drive the A7/A1/A2 toll motorways if you want speed, or N8 via Azrou only in daylight | Drive mountain roads (N8 or Tizi n'Tichka) after sunset—unlit curves and pedestrians are hazardous |
| Book your Fes → Chefchaouen CTM bus 2–3 days ahead during peak March–May / Sept–Nov seasons | Search for a train station in Chefchaouen or Merzouga—neither is connected to the rail network |
| Keep 20 and 50 MAD small bills ready for station taxis and highway tolls | Expect small mountain fuel stops or petit taxis in Fes to accept credit cards |
(Need to budget the rest of your route? Check our exact daily numbers in How Much Money Should I Budget Per Day in Morocco? and What Currency Is Used in Morocco?).
Frequently Asked Questions (FAQ)
How long is the train from Marrakech to Fes?
The direct ONCF Al Atlas train from Marrakech to Fes takes 6 hours 30 minutes to 6 hours 45 minutes across ~565 km of track. Direct trains run roughly every hour from 5:50 AM to 7:00 PM with no train transfers required.
Are there direct flights from Marrakech to Fes?
Yes. As of 2026–2027, Ryanair operates direct non-stop flights from Marrakech Menara (RAK) to Fes-Saïss (FEZ) approximately 5 days per week. The Marrakech to Fes flight time is just 1 hour 05 minutes in the air (roughly 4 hours door-to-door including airport transfers and early check-in). Royal Air Maroc flights require a long layover in Casablanca.
What is the best way to travel from Marrakech to Fes?
If you want to visit the Sahara Desert, the best way is a 3-day / 2-night one-way desert tour via Ait Ben Haddou, Todra Gorge, and Merzouga. If you are skipping the desert and going straight between the two cities, the 1st-class direct ONCF train offers the best mix of comfort, reliability, and cost (330–460 MAD), while Ryanair's direct flight is fastest if your travel dates match and you pack light.
Is the drive from Marrakech to Fes safe for tourists?
Yes—driving from Marrakech to Fes is straightforward along the modern A7/A1/A2 toll motorway (5.5 to 6 hours) and very manageable during daylight hours on the scenic N8 Middle Atlas highway (7 to 7.5 hours). Avoid driving rural mountain stretches after dark, watch for police speed radar near town entrances and toll plazas, and keep Moroccan Dirham cash for tolls.
Can you take a train from Fes to Chefchaouen?
No. Chefchaouen sits high in the Rif Mountains and has no railway station. The easiest ways to travel from Fes to Chefchaouen are the CTM coach bus (4 to 4.5 hours, 90–115 MAD) or a private driver / grand taxi (3.5 hours, 1,200–1,600 MAD per vehicle).
Official Transport & Route Reference Links
Check live departure times, motorway toll rates, and direct flight days directly through Morocco's official operators:
- ONCF Voyages – Official Marrakech to Fes Direct Train Schedules & Tickets
- Ryanair – Direct Domestic Flights from Marrakech (RAK) to Fes-Saïss (FEZ)
- CTM Intercity Buses – Official Fes to Chefchaouen & Marrakech Bus Schedules
- ADM (Autoroutes du Maroc) – Official A7, A1 & A2 Motorway Map & Toll Rates
- Visit Morocco – Official Moroccan National Tourist Office Regional Guides
(Mapping out the rest of your trip? Check our city guides for Tangier and Marrakech, plus our cultural handbook on Morocco Rules for Tourists!)

