The Fez to Marrakech train is the smartest way to connect Morocco’s two imperial cities, covering the 530 km route in roughly 7.5–8 hours.ONCF, the national rail operator, runs 3–4 direct services daily from Fez Ville station to Marrakech Ville, with second-class fares starting at 200 MAD (about $20 USD) and first-class from 320 MAD. The route isn’t served by high-speed rail — the Al Boraq line only covers Casablanca to Tangier — so you’ll cross the Moroccan heartland at a steady pace, passing through Casablanca, Oued Zem, and Benguerir. This guide covers schedules, prices, station navigation, and when to skip the train entirely, so you know exactly which departure to book and how to save money without sacrificing comfort.
Key Takeaways
- The Fez to Marrakech train takes approximately 7.5–8 hours, with most journeys requiring a transfer at Casablanca or Oued Zem
- Fares range from 200–300 MAD (roughly $20–$30 USD) for second class, with first class starting around 350 MAD
- 3–4 direct trains depart daily from Fez Ville station, with early morning departures being the most reliable
- Booking tickets 3–7 days in advance through ONCF’s website or app secures the best prices and seat availability
- The alternative — flying or taking a CTM bus — saves 2–3 hours but costs more or offers less comfort respectively
The Complete Answer: How the Fez to Marrakech Train Works

A wide shot of the train traversing the Moroccan landscape, emphasizing the route’s beauty and the journey’s length.
ONCF operates both direct trains and connecting services on this route, and understanding the difference shapes your entire journey plan.
Direct vs. Connecting Services
Direct trains run 3–4 times daily and stop at Casablanca Voyageurs for 20–25 minutes without requiring a change of train. Connecting tickets, by contrast, involve a transfer at Casablanca or Oued Zem, adding 30–60 minutes to the total journey but offering more departure flexibility throughout the day. The 530 km route is not served by a single high-speed line — the Al Boraq service only covers Casablanca to Tangier, so conventional rail handles the entire Fez–Marrakech corridor.
Definition: ONCF — Office National des Chemins de Fer, Morocco’s state-owned railway operator that runs all domestic train services, including the Fez to Marrakech route.

An inviting interior shot that highlights the travel experience, with a focus on relaxation and the passing Moroccan scenery.
Duration and Station Details
Journey time ranges from 7 hours 15 minutes to 8 hours 45 minutes depending on the service you choose. You’ll depart from Fez Ville station (Avenue de la Gare, near the medina) and arrive at Marrakech Ville station (Avenue Hassan II, a 10-minute taxi ride from Jemaa el-Fnaa square). Both stations have ticket counters, waiting areas, and basic refreshment kiosks.
Quick Answer: The Fez to Marrakech train takes 7 hours 15 minutes to 8 hours 45 minutes. Direct services run 3–4 times daily and stop at Casablanca Voyageurs without requiring a change. Connecting tickets add 30–60 minutes but provide more departure options. Trains leave from Fez Ville station and arrive at Marrakech Ville station, a 10-minute taxi ride from the medina.
Train Schedules and Departure Times
The daily timetable follows a predictable rhythm, with the earliest departure being the most reliable choice for a smooth journey.
Morning Departures
The first train leaves Fez at approximately 07:50, arriving in Marrakech around 15:30. This is the most popular option — book 3–5 days ahead during peak season (October–April) to secure a seat. The morning departure also gives you the most daylight for the scenic stretch through the Middle Atlas foothills.
Afternoon and Evening Options
Additional departures leave at roughly 12:30 and 15:10. The 15:10 service arrives at 23:20, which may be unsuitable for solo travellers or those staying in riads without late check-in. If you’re arriving late, confirm your accommodation’s reception hours before booking the afternoon train.
Seasonal Schedule Variations
During Ramadan and summer (June–August), ONCF adjusts frequencies to match demand. Check the ONCF app for real-time updates, as track maintenance on the Oued Zem–Benguerir segment occasionally causes delays of 30–60 minutes. The app also shows platform changes and live arrival estimates.
Quick Answer: The first train departs Fez at 07:50 and arrives around 15:30. Later departures leave at 12:30 and 15:10, with the last arrival at 23:20. During Ramadan and summer, ONCF adjusts frequencies. Track maintenance on the Oued Zem–Benguerir segment can cause 30–60 minute delays, so check the ONCF app on travel day.
Ticket Prices, Classes, and How to Book
Fares on this route are among the best value in Moroccan transport, especially when booked in advance through official channels.
Fare Breakdown by Class
Second-class seats cost 200–250 MAD; first-class compartments run 320–380 MAD. First class offers 4-seat compartments with more legroom, air conditioning, and quieter carriages — worth the premium for the 8-hour journey. Second class is perfectly serviceable with bench-style seats and overhead racks, but it fills up fast on weekends.
Booking Channels and Discounts
Book via the [ONCF website](https://www.oncf.ma), the ONCF mobile app, or in person at Fez Ville station ticket counters. Youth discounts (under 26) apply — roughly 15% off standard fares. Avoid third-party resellers, which mark up fares by 20–40% and offer no refund protection. The official app accepts international credit cards and issues mobile tickets directly.
Price Comparison Table
| Option | Price (MAD) | Duration | Comfort | Booking Flexibility | |——–|————|———-|———|———————| | Train 2nd Class | 200–250 | 7.5–8 hrs | Moderate | High | | Train 1st Class | 320–380 | 7.5–8 hrs | High | High | | CTM Bus | 180–220 | 9–10 hrs | Low–Moderate | Medium | | Domestic Flight (via Casablanca) | 800–1,200 | 5–6 hrs total | High | Medium | | Private Transfer | 1,500–2,500 | 6–7 hrs | High | Low |
Quick Answer: Second-class tickets cost 200–250 MAD; first class runs 320–380 MAD. Book through the ONCF website, app, or station counters. Under-26 travellers get roughly 15% off standard fares. Avoid third-party resellers that mark up prices by 20–40%. Booking 3–7 days ahead guarantees seat availability during peak season.
Step-by-Step: Your Journey from Fez to Marrakech
Following these four steps turns a potentially confusing Moroccan rail journey into a straightforward day out.
Step 1: Arrive Early at Fez Ville Station
Arrive 45 minutes before departure. The station has luggage scanners at the entrance — allow extra time during peak hours. Platform numbers are displayed 15 minutes before departure on the departure board and station announcements.
Step 2: Find Your Carriage and Seat
Carriage numbers are posted on the platform and on each carriage door. Second-class carriages are typically at the rear; first class at the front. Seat numbers are printed on tickets — reserved seating is mandatory on this route, so don’t assume you can sit anywhere.
Step 3: The Transfer at Casablanca (If Applicable)
Most direct trains stop at Cas
Conclusion
The Fez to Marrakech train remains one of Morocco’s most reliable and scenic travel options, offering exceptional value whether you choose the budget-friendly second class or the more spacious first-class compartments. With fares starting at just 200 MAD, an 8-hour journey that showcases the changing landscapes from the Middle Atlas to the ochre plains of the south, and the convenience of booking through the official ONCF app, there’s little reason to consider alternative transport. Remember to book 3–7 days ahead during peak seasons, arrive at Fez Ville station 45 minutes early, and check the ONCF app on travel day for any track maintenance delays on the Oued Zem–Benguerir segment. Whether you’re a backpacker watching your dirhams or a traveller seeking comfort, the Fez to Marrakech train delivers a smooth, stress-free connection between two of Morocco’s most unforgettable cities. Don’t wait — check the ONCF schedule today, secure your seat, and let the rails carry you from the spiritual heart of Morocco to the vibrant Red City.
FAQ### 1. How long does the Fez to Marrakech train journey take?
The journey typically takes 7.5 to 8 hours. Most direct trains stop at Casablanca (Voyageurs or Oasis station) for a scheduled stop, though some services may require a transfer there. Track maintenance on the Oued Zem–Benguerir segment can occasionally extend travel time by 30–60 minutes, so it’s wise to build some buffer into your itinerary if you have connecting plans in Marrakech.
2. Can I book tickets online with a foreign credit card?
Yes. The official ONCF website and mobile app accept international credit cards and issue mobile tickets directly to your phone. This is the most secure booking method — third-party resellers not only mark up fares by 20–40% but also offer no refund protection if your plans change. Booking 3–7 days in advance is recommended during peak seasons to guarantee seat availability.
3. Is first class worth the extra cost on this route?
For an 8-hour journey, many travellers say yes. First-class compartments (320–380 MAD) feature four-seat private cabins with significantly more legroom, consistent air conditioning, and quieter carriages. Second class (200–250 MAD) is perfectly serviceable with bench-style seating and overhead racks, but it fills up quickly on weekends and can feel crowded. If you value comfort, space, and a calmer atmosphere for a long ride, the premium is justified.
4. What is the first and last departure time from Fez?
The first train departs Fez Ville station at 07:50 and arrives in Marrakech around 15:30. Later departures leave at 12:30 and 15:10, with the last arrival at approximately 23:20. Note that ONCF adjusts frequencies during Ramadan and the summer months, so always verify the current schedule on the app or website before your travel day.
5. Do I need to reserve a specific seat?
Yes — reserved seating is mandatory on this route. Seat and carriage numbers are printed on your ticket, so you cannot simply sit anywhere. Carriage numbers are posted on the platform and on each carriage door (second class at the rear, first class at the front). Arrive at the station at least 45 minutes before departure to clear the luggage scanners and locate your platform, which is displayed 15 minutes before departure.