Morocco Train Map

Morocco's railways, run by ONCF, link the main cities of the north and west. Al Boraq, Africa's first high-speed train, connects Tangier with Rabat and Casablanca.

The line shows the main north–south route; trains also run from Kenitra and Rabat east to Meknes, Fes and Oujda.

OperatorONCF
Tangier–CasablancaAbout 2h 10m (Al Boraq)
Casablanca–MarrakechAbout 2h 40m
Rabat–FesAbout 2h 40m

The main lines

  • Al Boraq high-speed line: Tangier to Kenitra on a dedicated high-speed track, continuing to Rabat and Casablanca. Tangier to Casablanca takes about 2 hours 10 minutes.
  • Casablanca–Marrakech: regular trains take about 2 hours 40 minutes via Settat and Benguerir.
  • Rabat–Meknes–Fes: the line east from Kenitra and Rabat, continuing to Taourirt and Oujda near the Algerian border.
  • Marrakech–Fes: direct trains run the length of the network in about 7 hours. See Marrakech to Fes.

Where trains don't go

There are no trains to Chefchaouen, Essaouira, Agadir, Ouarzazate or the Sahara. ONCF's bus partner Supratours sells combined train-and-bus tickets to many of these places.

Tickets

Tickets can be bought at stations, from machines or online from ONCF. First class guarantees a seat and is good value; Al Boraq and popular weekend trains can sell out, so book ahead.

Plan Your Trip

Affiliate links: we may earn a commission if you book, at no extra cost to you.

Frequently Asked Questions

Is there a high-speed train in Morocco?

Yes. Al Boraq runs between Tangier, Kenitra, Rabat and Casablanca, reaching up to 320 km/h on the high-speed section.

Is there a train from Marrakech to Fes?

Yes. Direct trains take around 7 hours via Casablanca and Rabat.

Is there a train to Chefchaouen or Essaouira?

No. Use CTM or Supratours buses, which connect with trains at Fes, Tangier or Marrakech.