Casablanca to Marrakech Train

Casablanca is the main international gateway to Morocco, and Marrakech is the city most travelers want to reach. The train between them is one of the easiest, cheapest and most comfortable ways to travel in the country. In under three hours, you leave the Atlantic coast behind, cross the wide plains of the Chaouia and arrive in the red city at the foot of the Atlas.

This guide explains everything about the Casablanca to Marrakech train: stations, journey time, classes, tickets, how to get from Casablanca airport, the future high-speed line, alternatives by bus, car and private transfer, and tips to make the journey smooth.

DetailInformation
OperatorONCF, the Moroccan national railway
Main departure stationCasa Voyageurs
Arrival stationMarrakech railway station, in Gueliz
Journey timeAbout 2 hours 40 minutes on direct trains
ClassesFirst class and second class
FrequencySeveral departures per day
TicketsONCF website and app, station ticket offices, machines

Schedules and prices change, so always check the latest timetable on the ONCF website or app before you travel.

In Casablanca: Casa Voyageurs

Most trains to Marrakech leave from Casa Voyageurs, Casablanca’s main railway station, modernized when the high-speed line opened. It is also where the Al Boraq high-speed trains from Tangier and Rabat arrive, making connections easy. Casa Port, near the old medina and the port, mainly serves other routes, so check your ticket.

In Marrakech

Marrakech station is in the Gueliz district, a short taxi ride from the medina and Jemaa el-Fna. Petit taxis wait outside. See our guide to taking a taxi in Morocco.

Direct trains between Casa Voyageurs and Marrakech take about 2 hours and 40 minutes. Some trains stop more often, and works on the new high-speed line have caused temporary schedule changes and occasional service suspensions, so check before you go.

First classSecond class
Reserved seatSeat reservation increasingly common
More space and quieterBusier, especially on weekends and holidays
Compartments or open coachesOpen coaches
Recommended in summer and holidaysGood value for short trips

Trains are air-conditioned, though air conditioning can be weak on hot days. Toilets are available, and some trains have a snack trolley.

  • Online: on the ONCF website or mobile app, with e-tickets on your phone.
  • At the station: at ticket offices or machines.
  • In advance: recommended during holidays, weekends, summer and around Ramadan and Eid, when trains are busy.

Keep your ticket until you leave the arrival station; inspections are common.

If you land at Mohammed V International Airport, there is a train from the airport station to Casablanca. You can change at Casa Voyageurs or at a junction station for Marrakech, depending on the timetable. In practice, many travelers find a direct private transfer from the airport to Marrakech, about 3 hours by motorway, easier with luggage. See our guide to Casablanca airport.

In April 2025, construction began on a new high-speed line of about 430 km from Kenitra to Marrakech, via Rabat and Casablanca, serving both cities’ airports. When it opens, it will extend the Al Boraq high-speed network, and ONCF says travel time from Tangier to Marrakech will drop to about 2 hours and 40 minutes. Until then, the Casablanca to Marrakech journey uses the conventional line, and construction works can affect schedules.

See our guide to traveling by train in Morocco.

OptionTimeProsCons
TrainAbout 2h40Comfortable, affordable, no trafficFixed times, station transfers
Bus (CTM, Supratours)About 3 to 3.5 hoursAffordable, comfortable coachesBus stations, less legroom
Private transferAbout 3 hoursDoor to door, flexible, luggageMore expensive
Rental carAbout 3 hours on the motorwayFreedomTolls, city driving and parking
FlightShort flight plus airport timeFast in the airNot worth it for this distance

For a door-to-door option, especially from Casablanca airport, a private transfer is often the simplest. Our tours from Casablanca include transfers. See travel to Casablanca and our day trip from Marrakech to Casablanca.

  • Arrive at the station at least 20 to 30 minutes before departure.
  • Choose first class on busy days for a guaranteed seat.
  • Bring water and snacks; trolley service is limited.
  • Keep your bags close, especially in second class.
  • Check that you are boarding the right train; platforms are announced on screens.
  • Expect occasional delays.
  • In Marrakech, taxis outside the station should use the meter or agree a price.

Once in Marrakech, head to your riad or hotel, then explore Jemaa el-Fna, the souks and the Koutoubia. See Marrakech attractions and how many days in Marrakech is enough.

Many travelers fly into Casablanca, visit the Hassan II Mosque, then take the train to Marrakech. Others start with Rabat, Chefchaouen and Fes, then cross the desert to Marrakech. Our Morocco custom tours can include train journeys, private transfers or both.

The Casablanca to Marrakech train is one of the best ways to travel between Morocco’s two most famous cities: affordable, comfortable and simple. Book first class on busy days, leave from Casa Voyageurs, and enjoy the views. With luggage or arriving at the airport, a private transfer can be more convenient. And keep an eye on the new high-speed line, which will make the trip even faster in the future.

How long is the train from Casablanca to Marrakech?

About 2 hours and 40 minutes on direct trains.

Which station does the train to Marrakech leave from in Casablanca?

Most trains leave from Casa Voyageurs.

Is there a high-speed train from Casablanca to Marrakech?

Not yet. A new high-speed line from Kenitra to Marrakech via Casablanca is under construction.

Should I take first or second class?

First class is more comfortable and quieter, and recommended on weekends, holidays and in summer.

How do I buy train tickets in Morocco?

On the ONCF website or app, at station ticket offices or at machines.

Can I take the train from Casablanca airport to Marrakech?

Yes, with a change in Casablanca, but a private transfer is often easier with luggage.

Tours from Marrakech: Cross the High Atlas to Ait Ben Haddou and the dunes of Erg Chebbi.

Morocco Desert Tours: Camel trekking and a night under the stars in a Sahara desert camp.

Tours from Fes: The oldest medina in Morocco, then the Middle Atlas and the desert.

Tours from Casablanca: Begin at the Hassan II Mosque and travel through the imperial cities.

Tours from Tangier: Start in the north with Chefchaouen and the Rif Mountains.

Tours from Ouarzazate: Kasbahs, film studios and the gorges of the south.

Name
Lahcen Saadi, a professional local guide from the Exploring Morocco Trips team, in traditional attire in front of a 4x4 in the Sahara dunes

Your Local Experts

Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.

Scroll to Top