Train Times in Morocco: ONCF Timetable Checker

Trains are the best way to get between Morocco's big cities: fast, comfortable and good value. Use the tool below to check departures, then confirm on the official ONCF site before you travel.
Find a train
Timetables are entered manually and can change, so always confirm on the official ONCF site or at the station.
Train types
- Al Boraq: the high-speed line between Tangier, Rabat and Casablanca, the fastest option on that corridor.
- Al Atlas and regular intercity trains: link Casablanca with Marrakech, Meknes, Fes and Oujda, and Tangier with Casablanca.
- Navette and regional trains: shorter, slower local services, for example around Casablanca.
Buying tickets
Tickets are sold online, through the ONCF app, at station counters and at ticket machines. Reserve ahead for weekends, Friday evenings and holidays, when trains sell out. First class has reserved seats and is not much more expensive, which is useful on long journeys.
Stations to watch
- Casablanca has two main stations: Casa Voyageurs for most long-distance trains, and Casa Port for services toward Rabat and Tangier.
- Rabat has Rabat Ville in the centre and Rabat Agdal on the edge of the new town.
- Marrakech station is in Gueliz. You need a petit taxi to reach the medina.
Useful tips
- Arrive 20 to 30 minutes before departure.
- Keep your ticket until you exit, since inspectors check.
- Luggage racks are at the end of carriages; keep valuables with you.
For other options, read getting around Morocco and the bus times tool. Plan routes with the 7-day itinerary.
Frequently asked questions
How fast is the Al Boraq train?
It links Tangier and Casablanca in about two hours ten minutes and Tangier and Rabat in about an hour and twenty minutes.
Can I buy train tickets online in Morocco?
Yes, through ONCF's website and app, and at stations.
Are there trains to the desert?
No. Rail ends at cities like Marrakech and Fes. For the Sahara you need a bus, a driver or a tour.
