Traveller question
Member
January 2026
How do I book a train in Morocco (ONCF online)?
Asked by a traveller planning a trip to Morocco. Here's the honest answer from one of our travel designers.

Traveller question
Member
January 2026
How do I book a train in Morocco (ONCF online)?
Asked by a traveller planning a trip to Morocco. Here's the honest answer from one of our travel designers.
Serenity Morocco Expert Team
Travel Designer · StaffTravel Designers
January 2026
Book through ONCF, the national railway, at oncf.ma or the ONCF Voyages app, paying by card. You can also buy at any station counter or ticket machine. For ordinary trains you rarely need to book ahead, but Al Boraq high-speed and busy holiday departures are worth reserving a day or two out.
Moroccan trains are all run by one operator — ONCF, the national railway — so there's only one place to book, which keeps things refreshingly simple. The official site is oncf.ma, and there's an ONCF Voyages app that I genuinely recommend installing before you fly out. You pick your route and time, choose first or second class, pay with an international card, and you get an e-ticket with a QR code straight to your phone. I've booked dozens of these for travellers and the system, while not the prettiest website in the world, works perfectly well once you're in it.
A couple of honest quirks to save you frustration. The site occasionally rejects a foreign card on the first try; if that happens, try a different card or your phone's saved card in the app, which tends to be smoother. Place names appear in French and sometimes Arabic — Casablanca's main station shows as 'Casa Voyageurs', Tangier as 'Tanger', Fes as 'Fès' — so don't panic when the spelling looks off. And buy the actual journey, not a vague 'Casablanca' that might mean the wrong one of the city's several stations.
You absolutely don't have to book online, though. Every station has staffed counters and self-service machines, and for ordinary inter-city trains — Casablanca to Marrakech, Fes to Rabat — turning up an hour before and buying on the spot is completely normal. Second-class seats aren't reserved on those services, so a ticket simply lets you board any train that day in that direction. I often tell relaxed travellers to skip the online faff entirely and just buy at the station.
Where I do push people to book ahead is the Al Boraq high-speed line and any travel around big public holidays, Eid, or peak summer weekends, when trains genuinely fill. Al Boraq seats are reserved, so the train can sell out; reserving a day or two before locks in your seat and often a slightly cheaper fare. For everything else, Moroccan rail is one of the easiest things you'll do on your trip — turn up, tap your phone or flash your ticket, and go.
Serenity Morocco Expert Team — Travel Designers, Serenity Morocco Tours. Answered January 2026.
Travelled here yourself, or have a follow-up question? Share your own experience — our travel designers read every reply and add transparent, expert answers.
Tell us your dates and what matters most. A travel designer replies within 24 hours with a tailored, no-obligation proposal.