By Abdelilah, Marrakech local guide : Last checked October 2026
Trains are the easiest way to travel between Morocco’s big cities. The national operator, ONCF, runs Africa’s first high-speed line, Al Boraq, plus a network of classic trains linking Marrakech, Casablanca, Rabat, Fes, Meknes, Tangier and the east. Here is how the network works, how to buy tickets and what to expect on board.
The rail network at a glance
| Line | Main stops | Good to know |
|---|---|---|
| Al Boraq high-speed | Tangier, Kenitra, Rabat, Casablanca | The fastest link between the north and Casablanca. All seats are reserved |
| Classic main line | Marrakech, Casablanca, Rabat, Kenitra, Meknes, Fes | Frequent trains, the backbone for most itineraries |
| North line | Tangier, Kenitra, Meknes, Fes | Often combined with Al Boraq with a change at Kenitra |
| Eastern line | Fes, Taza, Oujda | For the far east of the country |
| Casablanca airport shuttle | Mohammed V Airport, Casablanca stations | A simple way into the city from the airport |
| Night train | Tangier to Marrakech | Couchettes on some departures. The service is sometimes suspended, so check the app |
Work on a high-speed extension to Marrakech, due before the 2030 World Cup, regularly changes timetables on the main line. Always check the current schedule in the ONCF Voyages app or on the official website the day before you travel.
Where the trains do not go
Many popular destinations have no railway station, including Essaouira, Agadir, Chefchaouen, Ouarzazate, the Atlas Mountains and Merzouga. For these, take a CTM or Supratours coach, a shared grand taxi, a private driver or a rental car. Supratours connects with ONCF trains, and you can buy a single ticket covering both the train and the coach for some routes.
Buying tickets
- Online or in the app. The official ONCF Voyages app and the website oncf-voyages.ma sell tickets for all trains, accept international cards and issue e-tickets with a QR code.
- At the station. Ticket offices and machines accept cash, and many accept cards. Queues can be long before busy departures, so arrive early.
- Avoid resellers. You do not need an agency for train tickets. Buy directly from ONCF to pay the official fare.
Children travel at reduced fares, and discount cards exist for young people and frequent travellers, though they rarely pay off on a short holiday.
First or second class?
| First class | Second class | |
|---|---|---|
| Seats | Reserved, larger seats, compartments or open carriages | Not always reserved on classic trains |
| Crowding | Calm, even at busy times | Can be very full on Fridays, Sundays and holidays |
| Price | Moderately higher | Very affordable |
| Best for | Long journeys, travelling with luggage, busy periods | Short trips at quiet times |
On Al Boraq, both classes have reserved seats, air conditioning and plenty of space, so second class is perfectly comfortable.
On board and at the station
- Arrive 20 to 30 minutes before departure. At larger stations, you scan your ticket at the gates to reach the platforms.
- Platforms and departures are shown on screens in Arabic and French. If you are unsure, show your ticket to staff.
- Delays on classic trains are common, so do not plan a tight connection with a coach or flight.
- Bring water and snacks. Some trains have a trolley or a cafe car, but not all.
- Keep your bag close at busy stations and when boarding, and keep valuables with you rather than on the luggage rack.
- Main stations, such as Casa Voyageurs, Rabat Agdal, Marrakech and Fes, have cafes, toilets and taxi ranks outside.
Sample routes for travellers
- Casablanca airport to Marrakech: airport shuttle to Casablanca, then a classic train to Marrakech.
- Marrakech to Fes: a direct classic train, long but comfortable in first class, or a change in Casablanca.
- Tangier to Marrakech: Al Boraq to Casablanca, then a classic train, or the night train, when it runs, if you want to save a hotel night.
- Fes to Tangier: classic train, often with a change at Kenitra onto Al Boraq.
Train travel FAQ
Do I need to book Moroccan trains in advance?
For Al Boraq high-speed trains, book a few days ahead, especially at weekends, on public holidays and in summer, because seats are assigned and can sell out. For classic trains, you can often buy on the day, but first class and night train berths are worth booking early.
Is first class worth it on Moroccan trains?
On classic trains, usually yes. First class guarantees a reserved seat and is less crowded, while second class seats are not always reserved and trains can be full. The price difference is modest.
Is there a train from Marrakech to Essaouira or Chefchaouen?
No. The railway does not reach Essaouira, Agadir, Chefchaouen, Ouarzazate or Merzouga. Supratours, the ONCF coach partner, sells combined train and coach tickets to several of these places.
Can I use an e-ticket on my phone?
Yes. Tickets bought on the ONCF Voyages app or website come with a QR code you can show on your phone. Keep a screenshot in case you have no signal.
Are Moroccan trains safe?
Yes. Trains are one of the safest and most comfortable ways to travel in Morocco. Keep an eye on your bags at busy stations and when boarding, as you would anywhere.
Linking several cities? Compare all the options in getting around Morocco, or ask Abdo for the fastest way to join up your route.