Illustrative Morocco scene: Hassan II Mosque Casablanca beside the ocean under blue sky
Travel Planning

Morocco Train Travel: The Complete Guide to ONCF Rail (2026)

8 min read
Get a free quoteAsk a planner

In short

How to travel Morocco by train: routes, tickets and tips for the Al Boraq high-speed service and Al Atlas express network — the most comfortable way to connect the imperial cities.

1,567 words8 min read

At a Glance

OperatorONCF (Office National des Chemins de Fer)
High-speed serviceAl Boraq: Tangier ↔ Casablanca, roughly 2h10m
Classic expressAl Atlas: Casablanca ↔ Marrakech, Casablanca ↔ Fes, Fes ↔ Oujda
Bookingoncf.ma website, ONCF app, or station counters
Book aheadUp to around 3 months in advance; earlier is usually cheaper
High-speed to MarrakechUnder construction; tentative completion around 2029
Airport connectionDirect train, Casablanca airport ↔ Casablanca Voyageurs, roughly 30 minutes

Morocco's rail network is one of Africa's most developed — clean, reasonably punctual and a genuine pleasure for journeys that matter: Casablanca to Rabat in under an hour, Rabat to Fes in around three hours, Casablanca to Marrakech in roughly three. Operated by ONCF (Office National des Chemins de Fer du Maroc), the network spans roughly 2,000 km and links Morocco's largest cities with a mix of high-speed and classic express services. The flagship Al Boraq TGV-style train slashed the journey from Tangier to Casablanca to around two hours; the Al Atlas expresses handle the inland routes. For travellers doing a multi-city Morocco itinerary — imperial cities, Atlantic coast, Sahara gateway towns — knowing how to use the trains well means faster connections, a lower environmental footprint and a more relaxed arrival than a long road transfer. This guide covers every main route, how to book, what to expect on board and when a private transfer still makes more sense.

These are typical market ranges across operators and venues, not our prices; our private trips are quoted free within 24 hours.

Morocco's Rail Hub: Casablanca

Nearly every main rail journey in Morocco passes through or originates at Casablanca, and specifically Casablanca Voyageurs — the country's principal station and interchange. From here, trains reach Rabat in roughly 45 minutes, Kenitra in around an hour, Fes in approximately 3h15m–3h45m, and Marrakech in around 2h55m–3h15m depending on the service. Tangier is served by the Al Boraq high-speed line in roughly two hours via Kenitra and Rabat.

For visitors flying into Mohammed V Airport, there is a direct airport shuttle train to Casablanca Voyageurs (roughly 30 minutes), making it easy to continue by rail without entering the city at all. If you have time to stop, our Casablanca travel guide covers the Hassan II Mosque, the Corniche and the city's underrated culinary scene.

Snow on the High Atlas behind a dry valley and kasbahs, photographed on one of our trips
Snow on the High Atlas behind a dry valley and kasbahs, photographed on one of our trips

Al Boraq: Morocco's High-Speed Train

The Al Boraq is Morocco's flagship rail service and, at its 2018 launch, became Africa's first high-speed train. It connects Tangier Ville and Casablanca Voyageurs in roughly 2 hours 10 minutes — down from around 5 hours on the classic line. Along the way it stops at Kénitra, Rabat-Agdal and Casablanca Port. The rolling stock is modern and comfortable: fully air-conditioned, wide seats, at-seat power sockets and a quiet-car option in most formations.

Fares are somewhat higher than the Al Atlas expresses, but not dramatically. Second-class tickets on Al Boraq have been available from around 99–150 MAD for the Tangier–Casablanca journey (prices vary by booking date and class — check current fares on oncf.ma before assuming any figure holds). First class is typically a meaningful step up in comfort for a moderate additional cost. Book in advance when you have a fixed date: prices tend to rise closer to departure and the midday trains sell out.

Tangier is also a natural starting point for travellers arriving by ferry from southern Spain (Algeciras or Tarifa); the ferry port is a short taxi ride from Tangier Ville station. Our Tangier food guide and Chefchaouen day trip guide cover what to do at either end of the line.

Al Atlas Express: The Inland Network

For routes the Al Boraq doesn't serve — and that is most of Morocco's interior — the Al Atlas classic express trains do the work. These are reliable long-distance services with air-conditioning, comfortable second and first-class carriages, and sometimes a dining car on the longer routes. Journey times are slower than the high-speed line, but fares are lower, and on scenic routes like the Casablanca–Fes leg the views through the Middle Atlas foothills are a reward in themselves.

Key Al Atlas routes and approximate journey times (confirm before travel, as schedules change):

RouteApproximate time
Casablanca ↔ Marrakech2h55m – 3h15m
Casablanca ↔ Fes3h15m – 3h45m (via Rabat, Meknes)
Casablanca ↔ Meknes2h30m – 3h
Casablanca ↔ Rabataround 45 minutes
Fes ↔ Oujdaaround 3h30m – 4h

For a Fes itinerary, the Al Atlas train from Casablanca is typically the most comfortable way in. Meknes — one of Morocco's most overlooked imperial cities — sits just off the Casablanca–Fes line, making it easy to combine both on a single trip; our Meknes day trip guide explains how to fit it in without a detour.

The Routes That Still Require Road Travel

A few popular Morocco itinerary legs are not yet served by rail, and a private transfer or bus is the practical option:

  • Marrakech to Essaouira: no rail link — roughly 2h30m–3h by private car
  • Marrakech to Agadir: no rail link — around 3–4 hours by road
  • Fes to Chefchaouen: no rail — best by private car or CTM bus (around 2h30m–3h)
  • Marrakech to the Sahara (Merzouga or Zagora): no train to the desert; private car over one or two days is the standard choice
A high-speed extension connecting Kenitra and Marrakech is reportedly under construction, with an estimated completion around 2029 — though large infrastructure projects often follow their own timelines. Until then, the Al Atlas Casablanca–Marrakech service is the only rail option for the Red City. For road-transfer logistics, our Marrakech to Fes travel guide weighs all the options, and private driver versus self-drive is useful reading before you decide.

Booking and Practical Tips

Where to book: Tickets are available on the oncf.ma website, the ONCF mobile app, or at any station counter. Online booking accepts major credit and debit cards; the site is primarily in French and Arabic. Tickets typically go on sale around three months ahead; early purchase gives you lower fares and more seat choice.

At the station:

  • Arrive 15–20 minutes early at busy hubs like Casablanca Voyageurs or Marrakech
  • Some stations have ticket barriers that require composting (stamping) your ticket before the platform — look for the small yellow machines near the gates
  • Large bags go in the racks at the end of each carriage; overhead bins are for carry-on size only
Class choice: Second class is comfortable and fine for most journeys. First class is noticeably quieter on the longer Al Atlas runs and worth the modest premium on a 3-hour journey.

Children and discounts: ONCF typically offers reduced fares for young children and occasional promotional passes (such as the SAYFI summer pass); confirm current terms and validity directly on oncf.ma as promotions change frequently.

For travellers who prefer a seamless arrival — a private transfer from the station, a guide ready at the riad — our Marrakech tours, Fes tours and Casablanca tours teams handle the logistics end-to-end. The imperial cities circuit is a natural fit for combining the rail network with private guiding.

FAQ

Is train travel in Morocco comfortable? Broadly yes, for city-to-city journeys. The Al Boraq high-speed trains are modern and well-maintained. Al Atlas expresses are older but clean, air-conditioned and reliable. The main limitation is that many popular destinations — the Sahara, Chefchaouen, Essaouira — are not on the network.

How much does a Morocco train ticket cost? Prices vary by route, service and booking date. Al Boraq second-class tickets have started from around 99–150 MAD for Tangier–Casablanca; Al Atlas second-class fares for Casablanca–Marrakech or Casablanca–Fes are typically lower. Check oncf.ma for current fares — early booking is cheaper.

Do I need to book Morocco train tickets in advance? It's advisable, especially in July and August, at Eid holidays and on Al Boraq. Tickets go on sale around three months ahead on oncf.ma and at station counters. Same-day tickets are usually available but prices rise.

Does the train go from Marrakech to Fes? Yes. Direct trains run Marrakech → Casablanca → Rabat → Meknes → Fes with no change, in roughly 6½–7 hours. Many travellers prefer a private car for this route — our Marrakech to Fes guide covers both options.

Is Al Boraq the same as TGV? It uses Alstom technology derived from the TGV platform and is operated under a similar model, but it is a distinct Moroccan service run by ONCF. At launch it was widely described as Africa's first high-speed rail line, with top speeds of around 320 km/h on the fastest sections.

How do I get from Casablanca airport to the train? A direct airport shuttle train runs from Casablanca Mohammed V Airport to Casablanca Voyageurs station, taking roughly 30 minutes. From Casablanca Voyageurs you can connect to trains across Morocco. It is one of the most straightforward airport rail links in Africa.


Planning a multi-city Morocco itinerary? Our Marrakech tours, Fes tours and imperial cities pages show how private guiding makes the most of each stop — arrivals handled, guides waiting, no logistics left to chance.

Share this article

SM

Written by

Serenity Morocco editorial team

Serenity Morocco Tours

Our in-house editors and Morocco travel designers research, write, and fact-check every guide — drawing on first-hand local knowledge across the country's cities, desert, mountains, and coast.

Newsletter

Get Morocco Travel Insights

From the page to the road

Marrakech, privately, with a local guide

We can arrange an airport pickup and a private driver in Marrakech who takes the road off your hands, door to door, with a Morocco-based team on WhatsApp for the whole trip.

Ask a planner on WhatsApp

A planner in Casablanca replies with a day-by-day route and a quote within 24 hours.

Free quote · Step 1 of 3

Get a free private trip plan

Who's travelling
How many
When
Free · no obligation · reply within 24 h or WhatsApp +212 701 664 704