Skip to content
Plan a trip

Getting around · Trains

Morocco by train: Al Boraq and the lines.

The railway runs from Tangier down to Marrakech and east through Fes to Oujda, with the Al Boraq high-speed train between Tangier and Casablanca. Below: the lines, the trains with real times and fares, buying tickets and the stations. Timetables and fares for Wednesday 25 November 2026, checked on 12 November.

TangierKenitraRabatCasablancaMarrakechMeknesFesOujdaAl Boraq, high-speedOther linesNo train south of Marrakech
Tangier → Casablanca, Al Boraq
2 h 17
Casablanca → Marrakech, direct
14 a day
Casablanca airport → city
41 min
times and fares checked
Nov 2026

The lines

Six lines, all in the north.

Marrakech is the end of the railway: south of it, buses and cars take over.

01

Al Boraq: Tangier – Casablanca

High-speed, since November 2018

Up to 320 km/h on the new line to Kenitra, then on to Rabat Agdal and Casa Voyageurs. 13 departures on our date, 06:00 to 19:00.

  • Tangier to Rabat in 1 h 22, to Casablanca in 2 h 17
  • In Rabat it stops at Agdal, not Rabat Ville

02

Casablanca – Marrakech

Al Atlas intercity

A direct train every hour from Casa Voyageurs: 14 a day on our date, 06:36 to 20:43, all in 2 h 54.

  • No change, no booking stress
  • The only line south of Casablanca

03

Casablanca and Rabat – Meknes – Fes

Al Atlas intercity

17 direct trains from Casablanca to Fes (3 h 55 to 4 h 05) and many more from Rabat (about 3 h). Meknes is 32 minutes before Fes.

  • The easy way to Fes, Meknes and Volubilis
  • Marrakech to Fes still takes about 7 hours

04

Tangier – Fes

Direct, or via Kenitra

Three direct trains (4 h 26 to 4 h 56), or a regular train to Kenitra and the Al Boraq on to Tangier: 3 h 42 in all.

  • Links the ferry port city with Fes
  • The fast option means one change

05

Casablanca airport

Mohammed V (CMN)

A shuttle train every hour from the airport station, 05:55 to 21:55, 41 minutes to Casa Voyageurs. For Marrakech, change at Casa Oasis.

  • Airport to Marrakech in 3 h 42
  • Last shuttle 21:55 on our date

06

Fes – Oujda

To the far east

Four trains a day, the fastest in 5 h 31, through Taza. A branch from Taourirt reaches Nador on the Mediterranean.

  • Only rail link to the east
  • Few trains: plan around them

Trains and fares

Times and fares, checked.

Prices are flexible fares (exchangeable, refundable); cheaper saver fares exist on most trains.

Al Boraq

Best for: Tangier, Rabat and Casablanca, fast

Speed
up to 320 km/h
Stops
Tangier, Kenitra, Rabat Agdal, Casa Voyageurs
Trains
double-deck, every hour or so
Saver fares
Tangier → Casablanca from 165 MAD
  1. Book a few days ahead for Friday and Sunday travel, when trains are busiest.
  2. In Tangier, the train leaves from Tanger Ville station, about 3.7 km from the medina by road.
  3. For Marrakech, change at Casa Voyageurs to the hourly Al Atlas train.
RouteTime2nd class1st class
Tangier → Rabat Agdal1 h 22205 MAD335 MAD
Tangier → Casa Voyageurs2 h 17270 MAD435 MAD
Marrakech → Tangier (change in Casablanca)5 h 42295 MAD470 MAD

Tip From the Spanish ferry to Casablanca in an afternoon: Tangier is 2 h 17 away.

oncf-voyages.ma, for Wednesday 25 November 2026, checked 12 November 2026. Fares change with the date and the train.

Book on oncf-voyages.ma

Tickets

Buying a ticket, step by step.

  1. Online or in the app Book on oncf-voyages.ma (in English) or in the ONCF Voyages app, pay by card and get an e-ticket. You can also buy at the station ticket office.
  2. Flexible or saver Flexible fares can be exchanged free of charge up to five times before departure and refunded in full until the day before (20% deducted on the day). Saver fares cost less, with stricter rules: read them before you pay.
  3. First or second class Second class is fine for most trips. First class costs about half as much again and gives more room on long rides like Marrakech to Fes.
  4. Book ahead at busy times Friday, Sunday, school holidays and the days around Eid fill up, especially on the Al Boraq. A few days ahead is usually enough.

Stations

From the station to the medina.

  • Marrakech

    In the new town, about 3.3 km by road from Jemaa el-Fna. Supratours buses to Essaouira and Merzouga leave from beside it.

  • Fes

    In the Ville Nouvelle, about 3.9 km by road from Bab Boujloud, the main gate of the old medina.

  • Tangier

    Tanger Ville, about 3.7 km by road from the Grand Socco. The Al Boraq and the Supratours bus to Chefchaouen both leave from here.

  • Casablanca

    Long-distance trains use Casa Voyageurs. Casa Port, about 3.8 km away by road near the old medina, has fewer long-distance trains: check which one your ticket says.

Journeys · by train

Two train journeys, step by step.

Our journey pages compare the train with the bus, the car and a driver.

Times and fares from our journey pages, checked November 2026. Lowest fares leave out private drivers.

Questions

Trains in Morocco, briefly.

Is there a train from Marrakech to Fes?

Yes: 14 direct trains on our date, about 7 hours, from 260 MAD in second class with a flexible fare (420 MAD in first).

Does the train go to Essaouira, Chefchaouen or the Sahara?

No. Supratours, the bus company of the railway, takes over: from beside Marrakech station to Essaouira and Merzouga, and from Tanger Ville to Chefchaouen.

How do I get from Casablanca airport to Marrakech by train?

Take the airport shuttle and change at Casa Oasis: 3 h 42 in all, from 205 MAD in second class with a flexible fare. Shuttles run hourly from 05:55 to 21:55.

Is there a night train from Marrakech to Tangier?

On 25 November 2026 the last train from Marrakech to Tangier left at 14:35, with a change in Casablanca, and we found no sleeper. Check your own date on oncf-voyages.ma.

How fast is the Al Boraq?

Up to 320 km/h on the Tangier–Kenitra line, opened in November 2018. Tangier to Casablanca takes 2 h 17, from 270 MAD in second class with a flexible fare.

When will the high-speed line reach Marrakech?

The Kenitra–Marrakech line has been under construction since April 2025 and is planned for before the end of 2029, with Tangier–Marrakech in about 2 h 40.