background

Marrakesh to Rabat Trains

29
Oct
Return

Departure Schedule

Morning departures

Fastest trip3 hrs 55 min
Longest trip4 hrs 0 min
Earliest04:30
Latest11:35
Departures8

Afternoon departures

Fastest trip3 hrs 55 min
Longest trip3 hrs 55 min
Earliest12:35
Latest17:35
Departures6

Evening departures

Fastest trip4 hrs 1 min
Longest trip4 hrs 1 min
Earliest20:00
Latest20:00
Departures1

Travelling from Marrakesh to Rabat by Train

The fastest trip from Marrakesh to Rabat is the direct ONCF train, with a journey duration of about 3 hours 30 minutes. If you are planning your next trip between Marrakesh and Rabat, 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. Moroccan Railways operates hourly trains from Marrakech station in the Guéliz district, with about 105 weekly train departures, and every train stops at both Rabat Agdal and Rabat Ville. Train tickets cost between €12 and €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. When searching for tickets, compare schedules and frequency for your date and book in advance to secure your seat.

Marrakesh to Rabat trains Information

Marrakesh
Marrakech Train Station, MoroccoMarrakesh Bus Station, MoroccoMarrakesh CTM Bus Station, Morocco
334 km
Rabat
3 h 55 m
Shortest travel time:
$35
Lowest ticket cost:
15
Avg. daily departures:
04:30
Earliest departure:
20:00
Latest departure:

Several factors, like budget, comfort and travel time, decide which option suits you best. A direct bus is the cheapest alternative: a Rabat bus ticket costs between €14 and €28, and bus companies such as CTM and Supratours run daily departures. Bus travel 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 Marrakech to Rabat. Royal Air Maroc offers 164 weekly flights on this route, all with a connection, usually via Casablanca's Mohammed V airport. The shortest flight time is 4 hours 10 minutes, the cheapest one-way flight costs €155 and the cheapest round-trip flight costs €321, which makes flying 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, 3.5 to 4 hours, 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 Marrakesh to Rabat

8.6 / 10 based on 1 review
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.