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 35mMAD 160–270Drive 318.3 km
- Drive from Marrakesh to Rabatcar 318.3 km
3h 10mMAD 465–671Fly 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
4h 58mMAD 954–1,180Fly to Rabat-Salé
- Fly from Marrakech (RAK) to Rabat-Salé (RBA)plane RAK - RBA
5h 48mMAD 714–3,055
Marrakesh to Rabat by train
Questions & Answers
The cheapest way to get from Marrakesh to Rabat is to bus which costs MAD 160 - MAD 270 and takes 4h 35m.
The fastest way to get from Marrakesh to Rabat is to drive which takes 3h 10m and costs MAD 460 - MAD 700.
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 35m.
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 270 and takes 4h 35m, you could also fly, which costs MAD 700 - MAD 3,100 and takes 5h 48m.
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–270 and the journey takes 4h 35m.
- Website
- royalairmaroc.com
Flights from Marrakech to Mohammed V International Airport
- Ave. Duration
- 51 min
- When
- Every day
- Estimated price
- MAD 900–23,000
Flights from Marrakech to Rabat-Salé via Laayoune
- Ave. Duration
- 4h 10m
- When
- Wednesday and Friday
- Estimated price
- MAD 2,300–4,800
- Website
- qatarairways.com
Flights from Marrakech to Mohammed V International Airport
- Ave. Duration
- 50 min
- When
- Every day
- Estimated price
- MAD 900–23,000
- Website
- ryanair.com
Flights from Marrakech to Rabat-Salé via Malaga
- Ave. Duration
- 7h 55m
- When
- Saturday and Sunday
- Estimated price
- MAD 600–2,300
- Website
- airarabia.com
Flights from Marrakech to Rabat-Salé via Oujda
- Ave. Duration
- 4h 35m
- When
- Wednesday
- Estimated price
- MAD 600–2,300
- Phone
- 2255
- communication.digitale@oncf.ma
- Website
- oncf.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.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.ma
- 2nd Class
- MAD 35–55
- 1st Class
- MAD 55–75
- Phone
- 0 800 0900 30
- ctmweb.ma@gmail.com
- Website
- ctm.ma
Bus from Marrakesh to Rabat Stn
- Ave. Duration
- 4h 35m
- Frequency
- 5 times a day
- Estimated price
- MAD 160–270
- Schedules at
- ctm.ma
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 5 incredible day trips from Florence by train, How to get from Southend Airport into central London, and Getting around the Cyclades - to help you get the most out of your next trip.
More Questions & Answers
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 10m to drive from Marrakesh to Rabat.
There are 1616+ hotels available in Rabat.











