Morocco price guide
How much does train ticket cost in Morocco?
Operated by the Office National des Chemins de Fer (ONCF), Morocco's railway system is one of the most reliable ways to travel between Tangier, Rabat, Casablanca, Meknes, Fes and Marrakech. There are two main long-distance services: the conventional Al Atlas intercity trains, with fares that are fairly stable by route, and the high-speed Al Boraq between Tangier and Casablanca, with dynamic pricing. Booking in advance can bring much lower fares, including YALLA promotional tickets.
Quick reference
per journey
Price examples
Typical amounts in MAD
ONCF fares depend on the route, the train type (Al Atlas intercity or Al Boraq high-speed), your class and how early you book. Typical 2nd class fares by route:
Advance-purchase fares can be much lower than the standard prices above. ONCF's YALLA fares start at about 49 MAD on selected Al Atlas trains and are a fixed 89 MAD (2nd class) or 129 MAD (1st class) on Al Boraq, when booked at least 7 days ahead on limited seats. Last-minute and peak-day fares are higher. All fares are approximate, so confirm the exact price for your date on the ONCF app.
Buy tickets on the ONCF Voyages website (`oncf-voyages.ma`) or app, at station ticket machines (Billetterie Automatique) or at the counters. Online you get a QR-code e-ticket on your phone. Some foreign bank cards are declined on the ONCF site, so if yours is, buy at the station or through a third-party platform such as 12Go, which sells the same ONCF tickets at the same or slightly higher prices.
Al Atlas intercity trains have fairly stable fares based on distance, with cheaper advance tickets on some departures. Al Boraq uses airline-style dynamic pricing, where fares rise as seats sell and are higher on busy morning and late-afternoon trains. 1st class on Al Atlas typically costs about 50–90 MAD more than 2nd class and adds a guaranteed numbered seat, wider seats and a quieter carriage.
Train category (Al Boraq 320 km/h high-speed vs. Al Atlas intercity vs. regional and airport shuttles)
Route and distance (Casablanca–Rabat 1 hour vs. Marrakech–Fes 6 to 7.5 hours)
Travel class (2nd class vs. 1st class with a guaranteed numbered seat)
Booking lead time (YALLA and advance fares vs. same-day purchases)
Peak days and holidays (Eid, summer and long weekends cost more and sell out)
Trains are the easiest way to travel between Morocco's main cities. Casablanca is the hub: most routes pass through Casa-Voyageurs, including the change for Marrakech to Fes. Al Boraq covers only Tangier to Casablanca, so for Marrakech or Fes you use the Al Atlas network. Major stations like Marrakech, Tanger-Ville, Rabat-Agdal and Casa-Voyageurs have cafés, luggage storage and Petit Taxi ranks outside.
A useful rule when comparing private guide prices
There is no direct train between Marrakech and Fes. You change at Casa-Voyageurs, so allow 6 to 7.5 hours.
Casablanca has two main stations: Casa-Voyageurs is for intercity trains and the airport train, and Casa-Port serves local trains and some Rabat services.
Choose 1st class for journeys over three hours, such as Marrakech to Fes, or on busy travel days, since the extra cost is usually only 50–90 MAD and your seat is guaranteed.
For Casablanca airport (CMN), take the airport train from Casa-Voyageurs (about 35 minutes), rather than paying for a taxi.
Arrive 20 to 30 minutes before departure at large stations, and keep your ticket or QR code until you leave the station, as inspectors check on board and at exits.
Children under 4 travel free if they do not take a seat, and older children get a reduced fare, so check the price when booking.
Budget 100 to 240 MAD ($10–$24 USD) per major intercity journey in 2nd class, and 50 to 80 MAD for short hops like Casablanca to Rabat. To save on a multi-city trip, book your Al Boraq and Al Atlas tickets online 1 to 2 weeks ahead to catch the 49 to 89 MAD YALLA fares.
Common questions
Frequently asked questions
A few practical questions travelers may have before choosing or paying for this in Morocco.
How much does a train ticket cost in Morocco?
ONCF train tickets cost from about 30 MAD for short regional trips to around 380 MAD for the longest 1st class journeys. Typical 2nd class fares are 50–80 MAD for Casablanca to Rabat, about 98 MAD for Casablanca to Marrakech, from 130 MAD for Casablanca to Fes and from 149 MAD for Tangier to Casablanca on Al Boraq.
How much is the train from Casablanca to Marrakech?
About 98 MAD in 2nd class and 155 MAD in 1st class at standard fares, with advance fares from around 49 MAD and peak fares up to about 150 MAD in 2nd class. The journey takes 2 hours 40 minutes to 3 hours 20 minutes.
How much is the train from Casablanca to Fes?
From about 130 MAD in 2nd class and 195 MAD in 1st class, depending on the time and how early you book. The journey takes 3 hours 30 minutes to 4 hours, with stops at Rabat and Meknes.
Is there a direct train from Marrakech to Fes?
No. You change at Casa-Voyageurs in Casablanca, and the whole journey takes 6 to 7.5 hours. Expect about 195–240 MAD in 2nd class and roughly 295–380 MAD in 1st class.
How much is the train from Casablanca to Rabat?
About 50–80 MAD in 2nd class and 75–120 MAD in 1st class. The journey takes about an hour, and trains run frequently throughout the day.
How much is the train from Casablanca airport to the city?
The airport train from Mohammed V airport (CMN) to Casa-Voyageurs costs about 50–70 MAD and takes around 35 minutes. From Casa-Voyageurs you can change for Rabat, Marrakech, Fes and Tangier.
Is 1st class worth it on Moroccan trains?
On long journeys of three hours or more, yes. 1st class on Al Atlas trains usually costs only about 50–90 MAD more and gives you a guaranteed numbered seat, wider seats and a quieter carriage. For short trips like Casablanca to Rabat, 2nd class is fine.
How do I buy train tickets in Morocco as a tourist?
Book on the ONCF Voyages website or app, or buy at station ticket machines and counters. Some foreign cards are declined on the ONCF site, in which case you can buy at the station or through a platform like 12Go. Al Boraq tickets include a reserved seat.
Do I need to book Moroccan train tickets in advance?
Al Boraq requires a ticket for a specific train, and Al Atlas tickets can often be bought the same day. Booking ahead is still smart for peak days and holidays, and it can bring much lower fares, with YALLA tickets from about 49 MAD on Al Atlas and 89 MAD on Al Boraq when booked at least 7 days early.
Is there a high-speed train to Marrakech?
Not yet. The high-speed Al Boraq only runs between Tangier and Casablanca. Marrakech is served by conventional Al Atlas trains from Casablanca, taking about 3 hours. A high-speed line to Marrakech is under construction.
How much is the Al Boraq high-speed train?
Tangier to Casablanca costs about 149–224 MAD in 2nd class and 229–300 MAD in 1st class, with YALLA fares of 89 MAD and 129 MAD. See our Al Boraq ticket prices for routes, rules and booking tips.
Do children pay for train tickets in Morocco?
Children under 4 travel free if they do not take a seat. Older children get a reduced fare, so check the price for your age group when you book on the ONCF app.




