Rabat to Marrakech: distance, travel time, train, bus, shared taxi and private transfer compared, the stop in Casablanca and how to book a private trip.
Written by the Highlights Morocco Tours team in Marrakech
The short answer
Rabat to Marrakech is about 320 km and takes roughly 4 to 5 hours, by train, bus, shared taxi or private transfer, and most routes pass through Casablanca. The train is the simplest public option, and a private transfer is best for families, groups and luggage, or if you want to stop in Casablanca. Our 8-day tour from Rabat includes Marrakech, and private trips are quoted on request, free and with no obligation.
Rabat, the capital, and Marrakech, the red city, are two very different stops in Morocco, and many travellers go from one to the other. This guide compares the options, explains the stops on the way and tells you how to book. When you are ready, message us on WhatsApp for a free quote.
Rabat to Marrakech: options compared
| # | Option | Time | Best for |
|---|---|---|---|
| 1 | Train | About 4 to 5 hours | One or two travellers, light luggage |
| 2 | Bus | About 5 hours | Budget travellers |
| 3 | Shared taxi | About 4 to 5 hours | Travellers who like to leave when the car is full |
| 4 | Private transfer | About 4 hours, plus stops | Families, groups, luggage, a door-to-door trip |
| 5 | Private tour with stops | Your plan | Travellers who want to see Casablanca on the way |
Times change, so check timetables and ticket rules before you travel.
Stops on the way
The road passes through Casablanca, where you can see the Hassan II Mosque. See the Hassan II Mosque and Casablanca to Marrakech. Before you leave Rabat, read things to do in Rabat.
Arriving in Marrakech
A private transfer takes you to the door of your riad or hotel in the medina area, which is often easier than a taxi from the station. For what to do on arrival, read the Marrakech travel guide, and see our private tours.
Tips for the trip
- Leave in the morning: you arrive in Marrakech with time to settle in.
- Check the last leg: leave time for delays before a flight.
- Book a private transfer for groups: the cost is shared between travellers.
The best time to visit Marrakech
| # | Season | What to expect | Best for |
|---|---|---|---|
| 1 | Spring (March to May) | Warm days, mild nights, green countryside | Cities, mountains and the Sahara |
| 2 | Summer (June to August) | Very hot inland and in the desert | The coast and the high mountains |
| 3 | Autumn (September to November) | Warm days and cooler nights | Cities, the Sahara and road trips |
| 4 | Winter (December to February) | Mild days, cold desert nights, snow in the Atlas | City breaks and winter sun in the south |
Tours that include Marrakech
- 8 days: 8-Day Morocco Tour from Rabat
- 10 days: 10 Days in Morocco: Private Tour from Marrakech, from 649 EUR per person
Prices are starting prices per person. The final price depends on your dates and group size, and quotes are free with no obligation. For more routes, read our Morocco itineraries.
Rabat to Marrakech: frequently asked questions
How far is Rabat from Marrakech?
About 320 km by road, which takes roughly 4 hours by car.
How long is the train from Rabat to Marrakech?
Around 4 to 5 hours, usually changing or passing through Casablanca. Check the timetable before you travel.
Is there a direct bus from Rabat to Marrakech?
Yes, buses run between the two cities, taking around 5 hours.
What is the best way to go from Rabat to Marrakech?
The train is the simplest public option, and a private transfer or tour is best for families, groups and trips with stops.
What is the best time to visit Marrakech?
Spring, from March to May, and autumn, from September to November, are usually the most comfortable seasons. Summer is very hot in the south and inland, and winter nights can be cold.
Can I go with a private driver and a local guide?
Yes. All our tours are private, with your own driver and a local guide who speaks English or Spanish. We quote private trips on request, free and with no obligation.
How do I book a trip to Marrakech?
Send us your dates and the number of travellers with the contact form, by WhatsApp or by email. We reply with a free, no-obligation quote and, when you are happy with it, we confirm the booking.
Plan your Morocco trip with us
Tell us your dates, who is travelling and what you would like to see. We reply with a free, no-obligation quote.





