How do trains work in Morocco?

The short answer

ONCF runs everything. Al Boraq is Africa's only high-speed rail: Tangier–Casablanca in 2h10m at 320 km/h, hourly departures. Al Atlas is the conventional network: Casablanca–Marrakech ~3h, Casablanca–Fes ~4h, plus night trains with sleepers. Extension to Marrakech by 2030. The catch: no trains to Essaouira, Agadir, Chefchaouen, or the south — Supratours buses fill those gaps from the stations.

Morocco has the only high-speed train on the African continent, a perfectly solid conventional network, and if a train goes where you're going — take it. You'll arrive rested, on time, and wondering why you ever considered the alternative.

Everything runs through ONCF (*Office National des Chemins de Fer*), the state railway. The map is simple: a north–south spine from Tangier through Kenitra, Rabat, and Casablanca down to Marrakech, plus an east–west line from Oujda through Fes and Meknes joining at Kenitra. A branch reaches Nador. That's the network — the Atlantic corridor and the eastern interior. Memorise it and everything else falls into place.

**Al Boraq** is the star — Africa's first and only high-speed rail, launched November 2018 and named after the mythical creature that carried the Prophet Muhammad on his night journey. Tangier to Casablanca in 2 hours 10 minutes, down from nearly five. The Tangier–Kenitra stretch flies on dedicated track at 320 km/h; Kenitra to Casablanca runs on upgraded conventional line at 160 km/h. Departures roughly hourly, 6am to 9pm. Two classes, assigned seats in first, all bookable online. The extension to Marrakech is expected by 2030 — 18 new Alstom trainsets were ordered in March 2025 for €781 million. When that line opens, the country transforms.

**Al Atlas** handles the conventional routes and is more comfortable than you'd expect. Casablanca to Marrakech: about 3 hours. Casablanca to Fes: around 4. Fes to Meknes: a breezy 45 minutes. There are night trains with genuine sleeping compartments — the Casablanca–Oujda service departs at 21:15 and arrives at 07:00, which is almost romantic. First class gives you a compartment with curtains and an assigned seat. Second class is open seating but clean and air-conditioned. Both are a completely different experience from the bus.

Fares are kind. Casablanca–Marrakech: about 100–130 MAD second class, 150–200 MAD first. Al Boraq from Tangier to Casablanca starts at roughly 150 MAD second, 230 MAD first. Stations are signed in Arabic and French and are hard to get lost in.

The catch: trains don't reach everywhere. No service to Essaouira, Agadir, Chefchaouen, Ouarzazate, the desert, or most of the south. For those places, ONCF runs its own bus service — Supratours — connecting seamlessly from train stations. Morocco's 2040 rail strategy maps 1,100 km of new high-speed track reaching Agadir, direct Rabat–Fes service, even Oujda. The 2030 World Cup is accelerating everything. The country is building fast.