Morocco by Train: The Complete ONCF and Al Boraq Guide for First-Timers

Morocco has one of the best train networks in Africa, and for a first-time visitor it is often the easiest way to move between the big cities. The trains are air-conditioned, punctual by Moroccan standards, and cheap compared with private drivers. The network is run by the state railway company, ONCF, and it comes in two flavours: Al Boraq, the high-speed line along the Atlantic coast, and Al Atlas, the classic trains that reach Marrakech, Fes and the rest of the country. If you are still deciding how to get around overall, see Getting Around Morocco: Trains vs Buses vs Rental Car.

Al Boraq: the high-speed train

Al Boraq is Africa's first high-speed train, running since November 2018. It links Tangier in the north with Casablanca in the south, stopping at Kenitra and Rabat-Agdal on the way, and it reaches speeds of up to 320 km/h on its dedicated line. The headline journey is Tangier to Casablanca in about 2 hours 10 minutes — a trip that used to take nearly five hours by road or classic train. Tangier to Rabat takes about 1 hour 20 minutes. Trains run roughly hourly from early morning to evening, so you rarely need to plan your day around a single departure. There are first- and second-class cars and a café-bar on board. One detail that catches first-timers out: in Rabat, Al Boraq stops at Rabat-Agdal, in the south of the city, not at Rabat-Ville in the centre. If your hotel is near the medina or the old town, allow extra time for a taxi or tram from Agdal. Our Rabat in One Day guide explains how the two stations fit into a day in the capital.

How much does Al Boraq cost?

Al Boraq uses dynamic pricing, so there is no single fixed fare: the price depends on the departure, the class and how far ahead you book. As a rough guide, Tangier to Casablanca typically costs around 99–224 dirhams in second class and around 129–292 dirhams in first class, with promotional fares advertised from as low as 89 dirhams. Book early and you will usually pay near the bottom of the range; book on the day of a Friday or Sunday evening departure and you may pay near the top. The same pattern holds on shorter legs: Tangier to Rabat is roughly 115–160 dirhams in second class. Fares and timetables change, so always check the price for your exact departure before you travel — the ranges here are a planning guide, not a quote.

First class or second class?

For most visitors, second class is perfectly comfortable: decent seats, air conditioning and plenty of legroom for a two-hour journey. Its only real weakness is crowding at peak hours and weekends, when it can fill up completely. First class brings two concrete advantages: an assigned seat, so there is no risk of standing on a busy train, and a quieter carriage. On Al Boraq the price gap between the classes is often surprisingly small, especially on promotional fares, so it is worth comparing the two before you book. First-class passengers on flexible tickets also get access to the Al Boraq lounges at Tangier, Rabat-Agdal and Casa-Voyageurs.

The classic trains: Al Atlas

South of Casablanca, the high-speed line ends and the classic Al Atlas trains take over. These are the workhorses of the network, linking Casablanca with Marrakech (about three hours), and running north and east to Meknes, Fes, Oujda, El Jadida, Safi and Nador. They are slower and older than Al Boraq, but they are comfortable, air-conditioned and reliable, and they serve the cities the high-speed line does not reach — including Marrakech and Fes, the two cities most first-timers visit. On classic trains, first class means six-seat compartments with reserved seats, and second class means eight-seat compartments. A trolley comes through selling tea, coffee and sandwiches. The Marrakech to Casablanca run is one of the most useful legs in the country: it drops you at Casa-Voyageurs, from where Al Boraq continues north to Rabat and Tangier, or at Casa-Port, closer to the city centre. A high-speed line from Kenitra via Casablanca to Marrakech is under construction, with opening planned for 2029, but until then the classic train is the way to reach the Red City by rail.

The night train

There is also an overnight train between Tangier and Marrakech, which is worth knowing about if you want to save a hotel night. It carries sleeping berths in four-berth first-class couchettes (roughly 375 dirhams) and second-class seats (roughly 216 dirhams). It is not luxurious, but it is a practical way to cover the long north-south distance while you sleep, and it arrives in Marrakech in the morning. Book berths ahead — they sell out before the seats do.

How to book

The easiest way to book is on the ONCF Voyages website (oncf-voyages.ma, which has an English version) or the ONCF app, up to about three months ahead. You can also buy at station counters and ticket machines, including on the day. For Al Boraq on Friday and Sunday evenings and around holidays, booking a day or two ahead is wise; otherwise buying at the station usually works fine. One practical note: some international cards are reported to be refused on the ONCF website, so if your card is declined online, try the app or simply buy at the station — the counter always works, and it accepts cash in dirhams. Keep your ticket until you leave the station, as tickets are sometimes checked at the exit.

Practical tips for the journey

Arrive at the station about 20–30 minutes before departure, a little earlier at Casa-Voyageurs and Tanger-Ville, which are large stations. The big stations have cafés, luggage storage and taxis outside; the smaller ones are simpler, so bring water and snacks. Luggage space on board is generous, with racks at the ends of the carriages and space above the seats, but keep valuables with you — the same common sense that applies on any train applies here. Children under 4 travel free, children aged 4 to 10 pay half fare, and from 11 they pay the adult fare. And if you are travelling during Ramadan, note that Morocco moves to GMT for the month and ONCF adjusts its timetables, so double-check times for that period.

Which routes should first-timers use the train for?

The train is at its best on the Atlantic axis: Tangier to Rabat to Casablanca, and Casablanca to Marrakech. If your itinerary runs Tangier–Chefchaouen–Fes–Marrakech–Casablanca, the train covers the Tangier–Casablanca and Casablanca–Marrakech legs beautifully, while Chefchaouen and the desert need a bus or a driver — the train does not reach them. Pairing the train with a bus or a private transfer for those gaps is the classic first-timer combination, and it is exactly how most visitors build their route. For the city at the northern end of the line, see our Chefchaouen: Is the Blue City Worth a Detour? guide, and for the southern end, our Casablanca for First-Timers guide.

Keep planning

Comments

Popular posts from this blog

Essaouira Day Trip from Marrakech: The Complete First-Timer's Guide

Moroccan Food: What to Eat and What to Skip

Getting Around Morocco: Trains vs Buses vs Rental Car