easyTransBook
Transport guide

Train · Morocco

ONCF Trains (Morocco)

ONCF is Morocco's national railway. Besides the Al Boraq high-speed train, it runs Al Atlas intercity trains linking Casablanca, Rabat, Marrakech, Fes, Meknes, Tangier and Oujda, plus night trains and the Casablanca airport shuttle. Trains are a comfortable, affordable way to cross the country.

Official website
OperatorONCF (Office National des Chemins de Fer)
Main citiesCasablanca, Rabat, Kenitra, Tangier, Meknes, Fes, Marrakech, Oujda
Train typesAl Boraq (high speed), Al Atlas (intercity), night trains, airport shuttle
Tangier–MarrakechAbout 5 hours 15 minutes by day (Al Boraq + Al Atlas); MAD 186–338 in 2nd
Fes–Marrakech directAbout 7 hours; from about MAD 200 in 2nd class
Night trainTangier–Marrakech couchettes, about MAD 370 in a 4-berth
Airport shuttleMohammed V Airport–Casablanca, hourly, about 1 hour; MAD 60 (2nd) / 80 (1st)
Customer service2255 (24/7)

Routes and stations

Al Atlas trains link Casablanca and Rabat with Marrakech, Fes, Meknes and Oujda, and Tangier with Meknes and Fes. In Rabat, classic trains use Rabat Ville; in Casablanca, Casa Voyageurs is the main hub.

The airport shuttle runs about hourly from Mohammed V International Airport (basement of Terminal 1) to central Casablanca in about an hour.

Night trains

A night train runs Tangier–Marrakech, leaving late evening and arriving the next morning. It has four-berth first-class couchettes, at about MAD 370–375, and seats.

A night service also runs from Casablanca to Oujda. Couchettes cannot be booked on the ONCF website; buy them at a station or through an agency.

Tickets and fares

Fares depend on demand and class. Tangier–Marrakech by day costs about MAD 186–338 in second class and MAD 249–472 in first. Children aged 4–10 pay reduced fares on classic trains, and under-4s travel free.

Prices change, so check the ONCF site for your date.

How to book

Book seats on the ONCF Voyages website up to three months ahead, or at station ticket offices. Some foreign cards are declined online; agencies such as 12Go and Bookaway also sell tickets.

Al Atlas seats are reserved, and first class can sell out at busy times.

Tips for travellers

Bring a warm layer for winter night trains and some cash for the trolley service. For Agadir and Essaouira, Supratours buses connect from Marrakech station.

Check you have booked a direct train on Fes–Marrakech, as some options require changes.

Last checked: October 2026. Fares and timetables change, so confirm on the official website before you travel.

Frequently asked questions

How do I get from Casablanca airport to the city by train?

Take the ONCF shuttle from Terminal 1. It runs about hourly and takes around an hour.

Is there a night train from Tangier to Marrakech?

Yes, with four-berth couchettes costing about MAD 370.

Can I book couchettes online?

Not on the ONCF website. Buy at the station or through an agency.

How long is Fes to Marrakech by train?

About 7 hours on a direct train.

How far in advance can I book?

Up to three months ahead on the ONCF website.