Skip to content
The Hassan Tower in Rabat under a clear sky

Getting around · Morocco

Rabat to Marrakech

How to go from Rabat to Marrakech: train, bus, taxi and private transfer compared, stops on the way and how to book.

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

#OptionTimeBest for
1TrainAbout 4 to 5 hoursOne or two travellers, light luggage
2BusAbout 5 hoursBudget travellers
3Shared taxiAbout 4 to 5 hoursTravellers who like to leave when the car is full
4Private transferAbout 4 hours, plus stopsFamilies, groups, luggage, a door-to-door trip
5Private tour with stopsYour planTravellers 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

#SeasonWhat to expectBest for
1Spring (March to May)Warm days, mild nights, green countrysideCities, mountains and the Sahara
2Summer (June to August)Very hot inland and in the desertThe coast and the high mountains
3Autumn (September to November)Warm days and cooler nightsCities, the Sahara and road trips
4Winter (December to February)Mild days, cold desert nights, snow in the AtlasCity breaks and winter sun in the south

Tours that include Marrakech

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.

Contact Us

Plan your private Morocco trip

Tell us your dates and what you would like to see. We will reply with a free, no-obligation quote.

Get a Free Quote

Free quote · No obligation · We reply as soon as possible

Why travellers trust us

Real people, real local knowledge