
Marrakech to Rabat: Train, Bus or Private Transfer?
Quick answer: Rabat is about 320 km north of Marrakech. By car the motorway via Casablanca takes roughly 3 h 30 to 4 h; the ONCF train takes around 4 hours to Rabat Ville or Rabat Agdal. For families, luggage or Rabat-Salé airport, a private transfer from €150 per vehicle is the most direct option.
Marrakech to Rabat: options compared
| Option | Time | Pros | Cons |
|---|---|---|---|
| Train (ONCF) | ~4 h | Comfortable, affordable, central stations | Taxi needed at both ends; fixed times |
| Bus (CTM / Supratours) | ~4 h 30 – 5 h | Cheapest | Longest journey |
| Private transfer | ~3 h 30 – 4 h | Door to door, any time, luggage, airport | Higher price, but per vehicle |
| Rental car | ~3 h 30 – 4 h | Freedom to stop in Casablanca | Tolls, parking and city traffic |
By train
Trains run from Marrakech station in Gueliz to Rabat Agdal and Rabat Ville, passing through Casablanca. The trip takes around four hours and there are several departures a day. First class gives you a reserved seat and more space. Always check the latest timetable on the ONCF website.
By private transfer
Your driver collects you at your riad or hotel, loads the bags and takes the motorway north via Casablanca straight to your address in Rabat. You pick the departure time and can ask for a short break on the way. Our Marrakech to Rabat transfer and the Rabat to Marrakech return cost from €150 per vehicle, not per person. Landing at Rabat-Salé airport? Send us your flight details and ask for an airport pickup.

Stopping in Casablanca on the way
The route passes Casablanca, about halfway. With a car or a private driver you can break the journey to see the Hassan II Mosque by the ocean — allow at least an hour. If you would rather spend a night there, combine a Marrakech to Casablanca transfer with the train to Rabat the next day. Our guide to Marrakech to Casablanca covers that leg in detail.
Practical tips
- Leave early in summer: the drive is more pleasant before midday heat.
- Rabat Ville station is closest to the medina and the Kasbah of the Udayas; Rabat Agdal suits the newer districts.
- Heading to Fes or Chefchaouen after Rabat? The train continues north and east from Rabat.
- All routes and prices: private transfers in Morocco.
Frequently asked questions
How far is Rabat from Marrakech?
Rabat is about 320 km north of Marrakech. The motorway via Casablanca takes roughly 3 hours 30 minutes to 4 hours by car.
How long is the train from Marrakech to Rabat?
The ONCF train takes around four hours to Rabat Agdal or Rabat Ville, with several departures a day. Check the current timetable on the ONCF website.
How much is a private transfer from Marrakech to Rabat?
Our private transfer costs from €150 per vehicle, not per person, from your riad or hotel to your address in Rabat. The return trip is the same price.
Can I be picked up at Rabat-Salé airport?
Yes, send us your flight number and arrival time when you ask for availability, and we will confirm an airport pickup for the drive to Marrakech.
Plan & book with Morocco Best Destination
Related Morocco travel guides
Recent Posts
Marrakech to Rabat: Train, Bus or Private Transfer?
Moroccan Hammam in Marrakech: What to Expect, Etiquette & Tips
Marrakech to Agadir: Bus, Car or Private Transfer?
All Categories

Agafay
