Traveling by train is one of the safest, most efficient, and most comfortable ways to get around Morocco. The national railway operator, ONCF, runs a surprisingly modern and extensive network connecting the country’s major cities.
The Al Boraq High-Speed Train
Morocco is proud to host Africa’s first high-speed rail line, the Al Boraq. It connects Tangier in the north to Casablanca in the south in just over 2 hours—a journey that used to take nearly 5 hours. It’s modern, incredibly clean, and very affordable by Western standards.
Standard Train Routes
For cities not on the high-speed line, such as Marrakech, Fes, and Meknes, standard trains are available. They are slightly slower but offer a fantastic way to watch the beautiful Moroccan countryside roll by.
First Class vs. Second Class
The price difference between first and second class is usually just a few dollars. First class guarantees you an assigned, comfortable seat in a 6-person compartment with air conditioning. Second class can get crowded, and you might have to stand during busy holiday periods. We highly recommend spending the extra few dollars for First Class.
How to Buy Tickets
You can buy tickets directly at the station via self-service kiosks or teller windows. If you want to book in advance, you can use the official ONCF website, though it can sometimes be finicky with foreign credit cards.
Frequently Asked Questions
Do Moroccan trains have WiFi?
The Al Boraq high-speed trains and some newer First Class cars have WiFi, but the connection can be spotty. It's best to have a local SIM card.
Is it safe to travel on night trains in Morocco?
Yes, night trains are generally safe. However, if you are traveling alone, it is highly recommended to book a sleeper cabin rather than a standard seat.


