

The ONCF train is widely considered the best overall option for traveling between Marrakech and Casablanca. The train distance between the two cities is approximately 240 kilometers. There are up to 10 daily departures from Marrakech railway station to Casa Voyageurs station, and the train travel time is about 2.5 to 3 hours. Modern Al Atlas train is air conditioned in all classes and has large windows for scenic views. Second class tickets cost 49–139 MAD and first class tickets 120–200 MAD. On Rail Ninja, the lowest ticket cost is approximately $32, economy class seats start from $34 and first class seats start from $40.
For passengers weighing other options, direct buses take about 3.5 to 4 hours. Driving via the A7 motorway is the fastest road route, and a rental car allows flexible travel along the way. Domestic flights take around 1 hour in the air, but airport procedures make the total travel time longer. Private transfers offer door-to-door service at a higher price. Whichever way you travel on the Casablanca to Marrakech route, the train offers the best balance of comfort, price and reliability.
The ONCF train is widely considered the best overall option. The train is comfortable, affordable and reliable, and it runs between two centrally located stations. You avoid road traffic, airport procedures and parking. Other options include the bus, private transfers, rental cars and domestic flights.
Train travel time is about 2.5 to 3 hours. The fastest trip takes around 2 hours 30 minutes. Journey time can vary slightly depending on the departure and the number of stops.
The train distance between Marrakech and Casablanca is approximately 240 kilometers. The road distance via the A7 motorway is about 246 km. Whichever way you travel on the Casablanca to Marrakech route, the distance is short enough for an easy day trip.
There are up to 10 daily train departures between Marrakech and Casablanca. Departures run from early morning to evening, so you can plan a morning connection, a day trip or an evening arrival at your hotel.
The most popular trains on this route are Moroccan Railways' (ONCF) Al Atlas intercity trains. They are modern and reliable, and every departure is a direct train with no changes.
Al Atlas is ONCF's intercity service linking Marrakech, Casablanca and other major cities in Morocco. Al Atlas trains feature:
Not yet. Morocco's Al Boraq high speed train currently runs between Casablanca and Tangier. An extension of the high speed line to Marrakech is under construction. Until it opens, Al Atlas trains remain the fastest rail option on this route.
Trains depart from Marrakech railway station, also called Marrakesh station, in the Gueliz district. It's a short taxi ride from the Medina and most hotels. Agree on the fare with your taxi driver before you set off. Arrive at the station at least 20–30 minutes before boarding.
Trains arrive at Casa Voyageurs, Casablanca's main train station. Casa Voyageurs station is well connected by tram and taxis, and it offers easy connections to Rabat, Tangier and the Al Boraq high speed line.
Both classes have large windows with picturesque views of the Moroccan countryside.
First class tickets are worth it if you want a guaranteed seat, more space and a quieter journey. The advantage is biggest on weekends and holidays, when second class seats fill up quickly.
Train tickets can be booked online on the Rail Ninja site or app. Choose your date, compare 1st class and second class seats, and purchase your tickets in a few minutes. You'll receive an e-ticket to show when boarding.
Booking in advance is recommended, especially for first class seats or travel on weekends and holidays. Buying your tickets up to one month ahead gives you the best choice of departures.
Yes. Trains include special luggage areas for passenger convenience, and there are overhead racks above the seats.
Yes. A trolley service provides snacks and beverages for purchase during the train travel.
Direct buses operate between Marrakech and Casablanca and take about 3.5 to 4 hours. That is longer than the train, and traffic can add to the travel time. The train is usually faster and more comfortable.
Driving via the A7 motorway is the fastest road route between the two cities. A rental car allows flexible travel and stops along the way, but tolls apply, and traffic in Casablanca can slow you down.
Yes. Domestic flights take around 1 hour of flight time, but airport procedures and transfers make the total travel time longer than the train.
Yes. You can book a return train from Casablanca to Marrakech on Rail Ninja. Up to 10 daily departures run on the Casablanca to Marrakech route as well, and the earliest train departs Casablanca at 06:30.
One platform, 34+ destinations, 700+ routes around the globe.
We speak your language and offer over 20 payment methods.
Read authentic Rail Ninja reviews and see what our travelers say about us.
You can conveniently book train tickets for up to a year in advance!
Need a hand? Contact our customer support before or during your trip.