There are 5 ways to get from Marrakesh to Rabat by train, bus, car, or plane
Select an option below to see step-by-step directions and to compare ticket prices and travel times in Rome2Rio's travel planner.
Train
best- Take the train from Marrakech to Rabat Villetrain
3h 37mMAD 130–270Bus
- Take the bus from Marrakesh to Rabat Stnbus
4h 20mMAD 160–300Drive 318.3 km
- Drive from Marrakesh to Rabatcar 318.3 km
3h 9mMAD 487–704Fly to Rabat-Salé
- Fly from Marrakech (RAK) to Rabat-Salé (RBA)plane RAK - RBA
5h 3mMAD 1,114–3,355Fly to Mohammed V International Airport, train
- Fly from Marrakech (RAK) to Mohammed V International Airport (CMN)plane RAK - CMN
- Take the train from Gare Oasis to Rabat Villetrain
5h 6mMAD 954–1,230
Marrakesh to Rabat by train
Comparing Your Travel Options
The cheapest way to get from Marrakesh to Rabat is to train which costs MAD 130 - MAD 270 and takes 3h 37m.
The fastest way to get from Marrakesh to Rabat is to drive which takes 3h 9m and costs MAD 480 - MAD 750.
Yes, there is a direct bus departing from Marrakesh and arriving at Rabat Stn. Services depart five times a day, and operate every day. The journey takes approximately 4h 20m.
Yes, there is a direct train departing from Marrakech and arriving at Rabat Ville. Services depart hourly, and operate every day. The journey takes approximately 3h 37m.
The distance between Marrakesh and Rabat is 334 km. The road distance is 318.3 km.
The best way to get from Marrakesh to Rabat without a car is to train which takes 3h 37m and costs MAD 130 - MAD 270.
The train from Marrakech to Rabat Ville takes 3h 37m including transfers and departs hourly.
Marrakesh to Rabat bus services, operated by CTM, depart from Marrakesh station.
Marrakesh to Rabat train services, operated by Moroccan Railways (ONCF), depart from Marrakech station.
The best way to get from Marrakesh to Rabat is to train which takes 3h 37m and costs MAD 130 - MAD 270. Alternatively, you can bus, which costs MAD 160 - MAD 300 and takes 4h 20m, you could also fly, which costs MAD 1,100 - MAD 3,400 and takes 5h 3m.
What companies run services between Marrakesh, Morocco and Rabat, Morocco?
Moroccan Railways (ONCF) operates a train from Marrakech to Rabat Ville hourly. Tickets cost MAD 130–270 and the journey takes 3h 37m. Alternatively, CTM operates a bus from Marrakesh to Rabat Stn 5 times a day. Tickets cost MAD 160–300 and the journey takes 4h 20m.
- Website
- royalairmaroc.com
Flights from Marrakech to Rabat-Salé via Laayoune
- Ave. Duration
- 4h 10m
- When
- Wednesday and Friday
- Estimated price
- MAD 2,600–3,100
Flights from Marrakech to Rabat-Salé via Errachidia
- Ave. Duration
- 3h 55m
- When
- Friday
- Estimated price
- MAD 750–3,400
Flights from Marrakech to Mohammed V International Airport
- Ave. Duration
- 53 min
- When
- Every day
- Estimated price
- MAD 900–15,000
- Website
- ryanair.com
Flights from Marrakech to Rabat-Salé via Valencia
- Ave. Duration
- 4h 30m
- When
- Monday
- Estimated price
- MAD 750–3,400
Flights from Marrakech to Rabat-Salé via Madrid
- Ave. Duration
- 5h 23m
- When
- Thursday, Friday, and Monday
- Estimated price
- MAD 700–3,400
Flights from Marrakech to Rabat-Salé via Malaga
- Ave. Duration
- 7h
- When
- Friday
- Estimated price
- MAD 750–3,400
- Website
- qatarairways.com
Flights from Marrakech to Mohammed V International Airport
- Ave. Duration
- 51 min
- When
- Every day
- Estimated price
- MAD 900–15,000
- Website
- airarabia.com
Flights from Marrakech to Rabat-Salé via Oujda
- Ave. Duration
- 3h 25m
- When
- Sunday
- Estimated price
- MAD 750–3,400
- Phone
- 2255
- [email protected]
- Website
- oncf-voyages.ma
Train from Marrakech to Rabat Ville
- Ave. Duration
- 3h 37m
- Frequency
- Hourly
- Estimated price
- MAD 130–270
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 130–190
- 1st Class
- MAD 200–270
Train from Gare Oasis to Rabat Ville
- Ave. Duration
- 1h 6m
- Frequency
- Hourly
- Estimated price
- MAD 35–75
- Schedules at
- oncf-voyages.ma
- Book at
- oncf-voyages.ma
- 2nd Class
- MAD 35–55
- 1st Class
- MAD 55–75
- Phone
- 0 800 0900 30
- [email protected]
- Website
- ctm.ma
Bus from Marrakesh to Rabat Stn
- Ave. Duration
- 4h 20m
- Frequency
- 5 times a day
- Estimated price
- MAD 160–300
- Schedules at
- ctm.ma
- Confort
- MAD 160–180
Want to know more about travelling around the world?
Rome2Rio's Travel Guide series provide vital information for the global traveller. Read our range of informative guides on popular transport routes and companies - including How to plan an amazing trip around Scandinavia, 4 of the smartest ways to explore Australia, and Travelling to and around Russia for the 2018 FIFA World Cup - to help you get the most out of your next trip.
Booking & Getting There
Marrakesh to Rabat bus services, operated by CTM, arrive at Rabat Stn station.
Marrakesh to Rabat train services, operated by Moroccan Railways (ONCF), arrive at Rabat Ville station.
Yes, the driving distance between Marrakesh to Rabat is 318 km. It takes approximately 3h 9m to drive from Marrakesh to Rabat.
Book your Marrakesh to Rabat train tickets online with 12go.asia.
Book your Marrakesh to Rabat bus tickets online with Omio and 12go.asia.
There are 1824+ hotels available in Rabat.











