background

Rabat to Marrakesh Trains

29
Oct
Return

Departure Schedule

Morning departures

Fastest trip4 hrs 3 min
Longest trip4 hrs 41 min
Earliest05:25
Latest11:56
Departures12

Afternoon departures

Fastest trip4 hrs 3 min
Longest trip4 hrs 41 min
Earliest12:34
Latest17:56
Departures12

Evening departures

Fastest trip4 hrs 3 min
Longest trip4 hrs 41 min
Earliest18:34
Latest20:34
Departures4

Travelling from Rabat to Marrakesh by Train

The fastest trip from Rabat to Marrakesh is the direct ONCF train, which covers 280 km in about 3 hours 30 minutes to 3 hours 40 minutes. If you are planning your next trip de Rabat à Marrakech, this guide compares all available options, from train schedules and ticket prices to buses, flights and driving, so you can pick the best transport for your budget. Trains are run by ONCF, the Office National des Chemins de Fer du Maroc, with about 6 daily direct departures and more services with a change in Casablanca, so you can travel roughly every hour or two. The earliest train departs Rabat at 05:25 AM. You can board at Rabat Ville, in the city center near the medina, or Rabat Agdal, in the modern Agdal district, and all trains arrive at Marrakech train station in the Guéliz district. Train tickets cost about €12 to €25 (about MAD 130 to MAD 270) per adult, and ticket prices vary depending on the class, the day of the week and how early you book. Second class offers the lowest price, while first class gives travelers a reserved seat, more legroom and a quieter carriage. Availability depends on popularity: Friday and Sunday afternoons, summer holidays and the days around Ramadan fill up fast, so the cheapest time to travel is usually midweek, on a Monday, Wednesday or Thursday morning. Buying your ticket is easy: book online, at the station or download the ONCF app, and check the rules on la sécurité de la gare, as all bags may be screened at the entrance.

Rabat to Marrakesh trains Information

Rabat
334 km
Marrakesh
Marrakech Train Station, MoroccoMarrakesh Bus Station, MoroccoMarrakesh CTM Bus Station, Morocco
4 h 3 m
Shortest travel time:
$35
Lowest ticket cost:
28
Avg. daily departures:
05:25
Earliest departure:
20:34
Latest departure:

Several factors, like budget, comfort and travel time, decide which option suits you best. A direct bus is the cheapest alternative: a bus ticket costs about €14 to €28, and bus companies such as CTM and Supratours run daily departures. A direct bus takes about 4h 20m, while long-distance coaches with more stops take about 4.5 to 5.5 hours, so the duration varies by provider and service. If you prefer to fly, note that no airline offers direct flights from Rabat to Marrakech Menara airport (RAK), and connecting flights usually go via Casablanca's Mohammed V airport. Thursday is the cheapest day to fly, and you can save up to 16% by flying on Thursday. Booking on Sunday costs 6% to 13% less than booking on Friday, and booking domestic flights at least one month in advance could save you 24%, but flying is still slower and more expensive than the train. If you drive your own car, the road distance is about 324 km, and the trip takes about 3.5 to 4 hours on the motorway. Private car transfers take about the same time and offer door-to-door service for groups and families. A high-speed line extending Al Boraq to Marrakesh is under construction and will make the train even faster in the future.

Popular questions about trains from Rabat to Marrakesh

Extensive Network

One platform, 34+ destinations, 700+ routes around the globe.

Convenient Booking

We speak your language and offer over 20 payment methods.

Excellent Rating

Read authentic Rail Ninja reviews and see what our travelers say about us.

Flexible Planning

You can conveniently book train tickets for up to a year in advance!

Real Human Support

Need a hand? Contact our customer support before or during your trip.