Home About Plans Compatibility Coverage FAQ Blog Contact 🛒 Buy eSIM
← Back to blog
Blog ·

Morocco by Train: Routes and Travel Tips for 2026

Explore Morocco by train with our guide to ONCF routes, station tips, and classes. Stay connected with a Morocco eSIM from eSIM Maroc for seamless travel.

Morocco by Train: Routes and Travel Tips for 2026

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

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

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!

Browse Morocco eSIM plans →

Frequently Asked Questions

What are the main train routes in Morocco?

The main routes include Tangier–Casablanca–Marrakech (high-speed), Casablanca–Fes, and Marrakech–Fes via Casablanca. ONCF also operates routes to Oujda, Safi, and Nador.

How do I buy train tickets in Morocco?

You can buy tickets online via the ONCF website or app, or at station counters. For popular routes, book in advance, especially for Al Boraq high-speed trains.

What is the difference between first and second class on Moroccan trains?

First class offers wider seats, more legroom, and quieter carriages. Second class is cheaper but can be crowded. Both are comfortable for short to medium journeys.

Is there Wi-Fi on Moroccan trains?

Some Al Boraq trains have Wi-Fi, but it is often slow. For reliable internet, use a local eSIM like eSIM Maroc, which works on all trains.

Can I take luggage on the train in Morocco?

Yes, luggage racks are available above seats and at carriage ends. Keep valuables with you. There are no strict weight limits, but avoid oversized bags.