Traveling through Morocco by train is one of the most comfortable and scenic ways to experience the country. The national rail operator, ONCF, connects major cities like Casablanca, Marrakech, Fes, and Tangier with modern, air-conditioned trains. Whether you're a first-time visitor or a seasoned traveler, this guide covers everything you need to know about Morocco train routes and travel tips for 2026.
Why Travel by Train in Morocco?
Morocco's train network is efficient, affordable, and punctual. Trains offer a stress-free alternative to driving, especially between cities. You can relax, enjoy the landscapes, and avoid traffic. Plus, with a Morocco eSIM from eSIM Maroc, you can stay online throughout your journey to check schedules, maps, or share your travel moments.
Main Train Routes in Morocco
Tangier to Marrakech (High-Speed Line)
Al Boraq, Africa's first high-speed train, connects Tangier and Casablanca in just over 2 hours. It continues to Marrakech (about 2.5 hours from Casablanca). This is the flagship route, offering premium comfort at competitive prices.
Casablanca to Fes
A classic route running via Rabat and Meknes. The journey takes around 4 hours. Trains depart frequently, and you can choose between first and second class.
Marrakech to Fes (via Casablanca)
A longer journey (about 7 hours) but covers two of Morocco's most iconic cities. It's a great way to see the changing landscapes from the Atlas Mountains to the imperial cities.
Other Notable Routes
- Casablanca to Oujda (eastern route, overnight possible)
- Kenitra to Safi (coastal route with ocean views)
- Fes to Nador (connecting the north-east)
Train Classes and Tickets
ONCF offers two classes: 1ère classe (first class) and 2ème classe (second class). First class has wider seats, more legroom, and often air conditioning. Second class is comfortable but can be crowded. For the high-speed Al Boraq, there are three classes: Smart, Comfort, and Business. Book tickets online via ONCF's website or at stations. For popular routes, book in advance.
Travel Tips for Train Journeys
- Arrive early: Major stations can be busy. Allow 30 minutes for security and finding your platform.
- Validate your ticket: If you buy a paper ticket, validate it in the orange machines before boarding.
- Pack snacks and water: Trains have a café car, but choices are limited.
- Keep valuables secure: Pickpocketing can occur in crowded trains.
- Stay connected: Use a Morocco eSIM from eSIM Maroc for reliable internet on the go. No need to swap SIMs or worry about coverage.
- Check schedules: ONCF occasionally changes timetables for maintenance. Use their app or website.
What to See Along the Way
The train journey from Marrakech to Casablanca offers glimpses of the Atlas Mountains and rural villages. The Tangier to Casablanca high-speed line passes through lush plains. From Fes to Meknes, you'll see olive groves and historic ruins. Keep your camera ready!
Connecting with Other Transport
Trains connect to buses, taxis, and grand taxis at major stations. For example, from Marrakech station, you can take a bus to the Medina or a taxi to the airport. For remote areas like Chefchaouen or the Sahara, combine train with bus or private transfer.
Staying Connected During Your Train Trip
Don't rely on station Wi-Fi. With a Morocco eSIM from eSIM Maroc, you get instant activation and coverage across Morocco, including on trains. Check our Morocco network coverage page to see where you'll have signal. eSIM Maroc offers data-only plans perfect for navigation, social media, and work.
Frequently Asked Questions
Is it safe to travel by train in Morocco?
Yes, trains are safe. Stick to first class for a quieter experience, and keep an eye on your belongings.
Can I buy train tickets online?
Yes, via the ONCF website or mobile app. You can also buy at stations.
Are there overnight trains in Morocco?
Yes, the Casablanca to Oujda route has a night train with sleeper compartments. Book in advance.
Do trains have Wi-Fi?
Some Al Boraq trains offer Wi-Fi, but it's slow. For reliable internet, use a local eSIM like eSIM Maroc.
Can I bring luggage on the train?
Yes, luggage racks are available. Keep valuables with you.
Conclusion
Traveling by train in Morocco is a fantastic way to explore the country's diverse landscapes and cities. With modern trains, easy booking, and helpful tips, you'll have a smooth journey. Don't forget to stay connected with a Morocco eSIM from eSIM Maroc – the reliable choice for travelers. Check your phone compatibility and get ready for an unforgettable Moroccan adventure!