Morocco by train: booking, tickets and classes.
Morocco’s trains are run by ONCF, the national railway, on a network that links the north and the Atlantic cities with Fes, Oujda in the east and Marrakech in the south. Here is how to book, read your ticket and choose a class; the network itself is drawn on our train-travel page.

Reviewed by Soufiane Idsidi, founder · Checked on · First published
The ticket, drawn
Read your ticket before the platform.
Train ticket · a sketch
- 1From → to
- Marrakech → Fes
- 2Date and time
- Departure
- 3Train
- Number
- 4Class
- 1st / 2nd
- 5Car and seat
- If assigned
- 1From → toCheck the station names: some cities have more than one (Casablanca has several).
- 2Date and timeBe on the platform a few minutes before departure.
- 3TrainThe departure boards show the train number and destination; match both.
- 4ClassFirst class is quieter and roomier; on long days it is worth it.
- 5Car and seatAl Atlas and Al Boraq tickets in either class show a coach and seat number; on TNR commuter shuttles second class is unreserved, so sit anywhere.
Booking
Where to buy your ticket.
- Online and app
- Book on oncf.ma or the ONCF app, or at station counters. Book Al Boraq and first class ahead, especially at weekends and holidays.
- At the station
- Ticket windows take cash and cards; queues can be long at busy times, so arrive early.
- Coach connections
- Supratours, ONCF’s coach partner, sells tickets on to towns the railway does not reach.
- The night train
- ONCF has run an overnight train with couchettes between Tangier and Marrakech. Check the current timetable before planning around it.

Classes
First, second or Al Boraq.
- Al Boraq
- Al Boraq, Africa’s first high-speed train, opened in 2018. It links Tangier with Casablanca via Kenitra and Rabat in about 2 hours 10 minutes, on a dedicated high-speed line as far as Kenitra.
- First class
- Wider seats, more space and quieter carriages: recommended for anything longer than a couple of hours.
- Second class
- Busier and fine for short hops such as Rabat to Casablanca.
- Direct to Fes
- Direct trains run between Marrakech and Fes, via Casablanca, Rabat and Meknes, in roughly six and a half to seven hours, with no change.
On the day
Platform, luggage and lunch.
- Your ticket
- Some paper tickets must be validated at a machine on the platform; e-tickets and app tickets are shown on your phone.
- Luggage
- There are racks overhead and space at the end of the carriage; keep valuables with you.
- Food and water
- Bring water and snacks for long journeys; station kiosks sell both.
- Changes
- A high-speed line from Kenitra to Marrakech is being built, due around 2029; timetables may change while the work goes on.

Trains in Morocco: your questions
How do I book train tickets in Morocco?
Book on oncf.ma or the ONCF app, or at station counters. Book Al Boraq and first class ahead, especially at weekends and holidays.
Is first class worth it on Moroccan trains?
Wider seats, more space and quieter carriages: recommended for anything longer than a couple of hours.
Is there a direct train from Marrakech to Fes?
Direct trains run between Marrakech and Fes, via Casablanca, Rabat and Meknes, in roughly six and a half to seven hours, with no change.
How fast is the Al Boraq?
Al Boraq, Africa’s first high-speed train, opened in 2018. It links Tangier with Casablanca via Kenitra and Rabat in about 2 hours 10 minutes, on a dedicated high-speed line as far as Kenitra.
Can I take the train to the Sahara?
The railway stops at Marrakech: the Atlas, the Sahara, the gorges and most of the coast are reached by road.
Which Casablanca station do I need?
Casa-Voyageurs for most long-distance trains: it is the main station and the end of the Al Boraq high-speed line to Tangier, with direct trains to Rabat, Fes and Marrakech. Trains to and from Marrakech also stop at L’Oasis. Casa-Port, in the city centre, is where the airport line ends: it runs from Mohammed V airport through L’Oasis and Casa-Voyageurs to Casa-Port.

After you ask for a quote
What you get within 24 hours
Your proposal contains
- A day-by-day route, with the driving time between stops
- Stays matched to your style (riads, kasbahs, desert camps or hotels), named so you can look them up
- Which moments are private to you, and which are shared, such as a camp’s dining tent
- An itemised quote: what is included and what is not
- Who is planning your trip, and how to reach them on WhatsApp
- Free, with no obligation to book
Before you pay a deposit, we confirm
- Opening days for the places on your route, including Friday and holiday closures
- Meal stops along the way, and any dietary needs
- Prayer or Shabbat timing, if it matters to you
- Step-free access, wherever you need it
- The vehicle class for your group and your luggage
Before you pay a deposit, we confirm
- Opening days for the places on your route, including Friday and holiday closures
- Meal stops along the way, and any dietary needs
- Prayer or Shabbat timing, if it matters to you
- Step-free access, wherever you need it
- The vehicle class for your group and your luggage
Every trip is private and priced to your dates, so there is no fixed price list. Ask, and the proposal shows the full cost before anything is booked.
Who plans your trip
The train where it shines, a driver where it stops.
المغربⵜⴰⴳⵍⴷⵉⵜ ⵏ ⵍⵎⵖⵔⵉⴱThe Kingdom of Morocco
