Morocco by trainONCF and Al Boraq.

Yes, between the main cities. ONCF trains link Tangier, Rabat, Casablanca, Fes, Meknes and Marrakech; Al Boraq, Africa’s first high-speed train, runs Tangier to Casablanca in about 2 hours 10 minutes, and direct trains run Marrakech to Fes in roughly six and a half to seven hours. The railway stops at Marrakech, so the south is by road.

Departures · a guide
Sample journeys and their usual times
JourneyTakes
Tangier → Casablancaabout 2 h 10
Marrakech → Fesabout 6½–7 h
Rabat → Casablancaa short hop
Casablanca → Marrakechsee oncf.ma
Not a live board: usual times from published sources. Check oncf.ma for today’s timetable.
Illustrative Morocco scene: Hassan II Mosque viewed from the Casablanca corniche with waves

Free quote · Step 1 of 3

Plan trains and drivers together

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

The line

The network, drawn.

Al Boraq, Africa’s first high-speed train, opened in 2018. It links Tangier with Casablanca via Kenitra and Rabat in about 2 hours 10 minutes, on a dedicated high-speed line as far as Kenitra.

Direct trains run between Marrakech and Fes, via Casablanca, Rabat and Meknes, in roughly six and a half to seven hours, with no change.

A high-speed line from Kenitra to Marrakech is being built, due around 2029; timetables may change while the work goes on.

Checked October 2026 against en.wikipedia.org, en.wikipedia.org, railwaygazette.com, oncf.ma. Rules change: confirm with your own government before you travel.

Schematic of Morocco’s main railway lines: the Al Boraq high-speed line from Tangier to Kenitra and on to Casablanca; conventional lines to Marrakech and, via Meknes and Fes, to Oujda; and a high-speed line from Kenitra to Marrakech under constructionTangierKenitraRabatCasablancaMarrakechMeknesFesOujdaAl Boraq (high-speed to Kenitra)Conventional linesHigh-speed, being built (~2029)
A schematic, not to scale, of the main lines only.

Where the trains stop

The stops, city by city.

  • Illustrative Morocco scene: Tangier hilltop medina lane with white houses overlooking the sea

    Tangier

    The northern end of Al Boraq. Taxis to the city port and to Tanger Med for ferries.

  • Kenitra

    Where the high-speed line from Tangier meets the conventional network; trains for Meknes and Fes head inland beyond it.

  • Illustrative Morocco scene: Blue-and-white Kasbah des Oudayas lane in Rabat leading to the river

    Rabat

    The capital, with frequent trains to Casablanca and Al Boraq stops.

  • Illustrative Morocco scene: Wide view of Hassan II Mosque Casablanca on the seafront

    Casablanca

    Casa-Voyageurs, the hub for many long-distance trains and the southern end of Al Boraq.

  • Illustrative Morocco scene: Marrakech souk street with hanging lamps and Koutoubia minaret at sunset

    Marrakech

    The southernmost major stop, in a modern station near Gueliz.

  • Illustrative Morocco scene: Meknes Bab Mansour gate in golden evening light with strollers

    Meknes

    On the Fes line: an easy stop to break the Marrakech–Fes journey.

  • The Chouara tannery dye pits in the Fes medina, photographed on one of our trips

    Fes

    The station is in the new town; taxis take you to the medina gates.

  • Oujda

    The eastern end of the line, near the Algerian border.

On board

Classes, tickets and tips.

Al Boraq, first class
Roomier seats and quieter carriages on the high-speed train, with an onboard refreshment service.
Al Boraq, second class
The same fast journey in standard seats.
Conventional first class
Air-conditioned, quieter and with more space than second class: the comfortable choice for long days such as Marrakech–Fes.
Conventional second class
A numbered seat on every ticket in busier carriages, widely used by Moroccan travellers, and the budget choice. Only TNR commuter shuttles have unreserved second class.
Night train
ONCF has run an overnight train with couchettes between Tangier and Marrakech. Check the current timetable before planning around it.
Illustrative Morocco scene: Smartphone with a digital pass on a brass tea tray in a riad
  • Book on oncf.ma or the ONCF app, or at station counters. Book Al Boraq and first class ahead, especially at weekends and holidays.
  • Bring water and snacks for long journeys; station kiosks and cafés are at the main stops.
  • Keep valuables with you rather than on the rack, and luggage you can lift yourself.
  • A high-speed line from Kenitra to Marrakech is being built, due around 2029; timetables may change while the work goes on.
Camel riders crossing orange Sahara dunes, photographed on one of our trips

Beyond Marrakech

Where the rails stop.

The railway stops at Marrakech: the Atlas, the Sahara, the gorges and most of the coast are reached by road. Many travellers take the train between the northern cities and a private driver for the south.

All the ways to get around

Morocco by train: your questions

What is the Al Boraq train in Morocco?

Al Boraq, Africa’s first high-speed train, opened in 2018. It links Tangier with Casablanca via Kenitra and Rabat in about 2 hours 10 minutes, on a dedicated high-speed line as far as Kenitra.

Can I travel from Marrakech to Fes by train?

Yes. Direct trains run between Marrakech and Fes, via Casablanca, Rabat and Meknes, in roughly six and a half to seven hours, with no change. Many travellers break the journey in Rabat or Meknes.

How do I book train tickets in Morocco?

Book on oncf.ma or the ONCF app, or at station counters. Book Al Boraq and first class ahead, especially at weekends and holidays.

Which cities does the train reach?

Morocco’s trains are run by ONCF, the national railway, on a network that links the north and the Atlantic cities with Fes, Oujda in the east and Marrakech in the south. The railway stops at Marrakech: the Atlas, the Sahara, the gorges and most of the coast are reached by road.

Is first class worth it on Moroccan trains?

On long journeys, many travellers think so: first class is quieter and roomier, and on conventional trains it gives you more space for a full day such as Marrakech–Fes.

Is there a sleeper train in Morocco?

ONCF has run an overnight train with couchettes between Tangier and Marrakech. Check the current timetable before planning around it.

A palace courtyard in Marrakech with a tiled fountain and orange trees, photographed on one of our trips

After you ask for a quote

What you get within 24 hours

Your proposal contains

  • A day-by-day route, with the driving time between stops
  • Stays matched to your style (riads, kasbahs, desert camps or hotels), named so you can look them up
  • Which moments are private to you, and which are shared, such as a camp’s dining tent
  • An itemised quote: what is included and what is not
  • Who is planning your trip, and how to reach them on WhatsApp
  • Free, with no obligation to book
Before you pay a deposit, we confirm
  • Opening days for the places on your route, including Friday and holiday closures
  • Meal stops along the way, and any dietary needs
  • Prayer or Shabbat timing, if it matters to you
  • Step-free access, wherever you need it
  • The vehicle class for your group and your luggage

Every trip is private and priced to your dates, so there is no fixed price list. Ask, and the proposal shows the full cost before anything is booked.

Who plans your trip

Our vehicle on a mountain village road in the south, photographed on one of our trips
ⴰⵣⵓⵍ
azul · hello, in Tamazight

The train where it shines. A driver where it stops.

Your dates and the places you want to see. A planner in Casablanca replies within 24 hours with a free itemised quote, then plans the day-by-day route with you after a call.

Free quote · Step 1 of 3

Your private trip

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

المغربⵜⴰⴳⵍⴷⵉⵜ ⵏ ⵍⵎⵖⵔⵉⴱThe Kingdom of Morocco