Discovering...
Discovering...

Routes, real journey times, Al Boraq speeds, online booking and — crucially — which destinations the train simply does not reach.
Yasmine El Amrani· Marrakech & Atlas Editor
Marrakech-born travel writer who has spent the last decade walking the medina’s souks and the High Atlas trails above Imlil. She covers the Red City, Berber villages and day trips into the mountains. Marrakech · 12+ years covering Morocco
Published 26 July 2025 Last updated 18 May 2026
Morocco's national rail operator ONCF runs a surprisingly good network for a country of this size — connecting the four Imperial Cities and the Atlantic coast with punctual, air-conditioned trains at fares that undercut most European equivalents. The headline act is the Al Boraq, Africa's first high-speed line, which races between Casablanca and Tangier in just over two hours.
The catch is the map. Trace a line from Marrakech south and east and you fall off the rail network entirely. Merzouga, Ouarzazate, the Dades Gorge, Essaouira, Chefchaouen — none of them have train stations. So the honest answer to "can I travel Morocco by train?" is: for the Imperial Cities corridor, yes, comfortably. For anything resembling a full Morocco itinerary, you will need road transport for at least part of the trip.
What follows is a plain-English breakdown of what the network covers, what it costs, and how to book — so you can plan your transport realistically before you arrive.
Network length
~2,110 km of track
Al Boraq top speed
320 km/h
Cheapest 2nd-class ticket
from ~40 MAD (~$4 USD)
Indicative figures. Fares vary by class, booking date, and service type.
Journey times are typical; delays of 10–20 minutes are common on Intercités services. Al Boraq (high-speed) is usually more punctual.
| Route | Journey time | Service | From (indicative) | Notes |
|---|---|---|---|---|
| Casablanca → Rabat | 40–45 min | Intercités / Al Boraq* | ~40 MAD (2nd class) | Most frequent corridor — trains every 20–30 min at peak. |
| Casablanca → Marrakech | 2 h 45 min – 3 h 20 min | Intercités | ~95 MAD (2nd class) | Direct trains run roughly every 2 hours. |
| Casablanca → Fes | 3 h 45 min – 4 h 30 min | Intercités | ~110 MAD (2nd class) | Some services stop at Meknès en route. |
| Casablanca → Tangier (via Al Boraq) | 2 h 10 min | Al Boraq (high-speed) | ~240 MAD (1st class only) | Non-stop. Departs from Casablanca Voyageurs. |
| Tangier → Fes | 4 h 45 min (Al Boraq + Intercités) | Mixed | ~170 MAD | Change at Kénitra or take a through service. |
| Fes → Marrakech | No direct train | — | — | Travel via Casablanca (5–6 h+ total) or take a private vehicle. |
* Al Boraq tickets are 1st class only. Fares are indicative and subject to change — always verify on oncf.ma.
Launched in November 2018, the Al Boraq ("lightning" in Arabic) is a TGV-derived service built in partnership with SNCF. It runs on a dedicated track between Tangier and Kénitra — the section where most time was saved — and then slots onto upgraded conventional track into Casablanca and Rabat.
In practical terms it means Tangier to Casablanca in just over two hours, a journey that used to take five. For travellers arriving by ferry from Spain into Tangier Med port, the connecting shuttle bus to Tangier Ville station and then a direct Al Boraq to Casablanca is one of the slickest transport links in North Africa.
Seats must be reserved in advance (no standing tickets). 1st class is the only cabin — the leather seats are wide, air conditioning is reliable, and there is a bistro car. Book on oncf.ma or at station ticket offices. Popular weekend slots sell out several days ahead.

This is where most itinerary planning falls down. If any of these are on your list, budget for road transport.
Merzouga / Sahara
Nearest station is Errachidia — 50 km away. No reliable onward bus.
Chefchaouen
Closest station is Souk el-Arba du Gharb, then a taxi. Most visitors go via Tangier or Fes by road.
Ouarzazate
Deep south — no rail at all. Road is the only option.
Essaouira
Not on any line. Bus or private transfer from Marrakech.
Zagora / M'Hamid
No rail. A long drive south of Marrakech.
Dades & Todra Gorges
Zero rail access. Reached only by car or private tour.
Seats fill up fast on Friday afternoons and Sunday evenings. The website accepts Visa/Mastercard issued outside Morocco — a minor miracle by regional standards.
If connecting from a regional Intercités onto an Al Boraq, leave at least 30 minutes. Missing a reserved Al Boraq seat means buying a new ticket.
Casablanca has two main stations: Casa-Voyageurs and Casa-Port. Most long-distance trains use Voyageurs. The tram connects them, but it takes time — check your departure board.
On Intercités services, 2nd class is clean and comfortable for journeys of 2–3 hours. Save 1st class for the longer Casablanca–Oujda overnight run or very hot summer days.
The ONCF network links Casablanca, Rabat, Salé, Kénitra, Tangier, Meknès, Fes, Oujda and Marrakech. The Al Boraq high-speed line covers Tangier to Casablanca (and onto Kénitra and Rabat) at up to 320 km/h. That covers the main Imperial Cities corridor well. However, vast swaths of Morocco — the entire south, the Atlantic surf coast, and most mountain routes — have no rail at all, so any itinerary that goes beyond the main cities will need road transport.
There is no direct train between Marrakech and Fes. The fastest rail option is to take an Intercités from Marrakech to Casablanca (around 3 hours), then another from Casablanca to Fes (roughly 3 h 45 min), giving a total rail journey of around 7 hours with a connection. Most travellers doing the Marrakech–Fes route opt for a shared or private long-distance bus (CTM or Supratours), a private vehicle, or a multi-day tour that stops at the Sahara and gorges along the way.
ONCF's official booking platform is oncf.ma. You can book tickets up to 30 days in advance, choose your seat, and pay by card. Tickets are also available at station ticket offices and from automatic kiosks. For popular routes on peak dates (Eid holidays, summer weekends), booking a few days ahead is wise. Al Boraq tickets tend to sell out faster than Intercités ones and carry a small surcharge for 1st class, which is the only class on the high-speed service.
ONCF offers a Carte Réseau (network card) and a Hilali pass aimed at frequent travellers and Moroccan residents, but there is no dedicated tourist rail pass equivalent to a Eurail card. For most visitors doing 2–4 train journeys, buying individual point-to-point tickets is simpler and cheaper. If you plan to base yourself in Casablanca or Rabat and make repeated day trips by rail, ask at the ticket office about multi-journey discount options — they do exist, though they are not heavily marketed to tourists.
The Al Boraq (Arabic for lightning) reaches a top speed of 320 km/h and has a commercial operating speed of around 300 km/h — making it Africa's first high-speed rail line, launched in 2018. The non-stop Casablanca–Tangier run takes about 2 hours 10 minutes, cutting the old Intercités time roughly in half. The train is 1st class only, air-conditioned, and seats must be reserved in advance. The ride is remarkably smooth and a genuine highlight for rail enthusiasts.
If your itinerary covers only the Imperial Cities circuit (Tangier → Fes → Meknès → Casablanca → Marrakech), trains handle it well and are often the most comfortable and cost-effective option. Add the Sahara, the gorges, Essaouira, Chefchaouen or any southern destination and the rail network simply stops. For those mixed itineraries, the practical approach is to train between the major northern cities and use a private guided vehicle for everything south of Marrakech or off the main axis.
Trains and long-distance CTM/Supratours buses are both safe and reasonably punctual by regional standards. Trains generally offer more legroom, smoother rides, and the freedom to walk around — particularly pleasant on the 3-hour Casablanca–Marrakech run. Buses are more flexible in destination coverage, as they reach cities and towns the train does not serve. For comfort on covered routes, trains edge ahead; for reach, buses win. A private vehicle with a driver-guide is the most comfortable and flexible option of all.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete
Train vs bus vs private driver vs rental car — every option compared.
Times, fares, station tips and what to expect on the most-used rail route.
Side-by-side comparison to help you choose the right transport for your trip.