Quick answer
Rabat is 319 km north of Marrakech, about 3 h 45 on the A7 toll motorway and the coast road through Casablanca. A van takes up to 7 passengers. The dispatch desk quotes one price for the car before you travel. The ONCF train takes around 4 hours, but you then need a taxi at each end.
Driving north on the A7
The A7 leaves Marrakech north across the Haouz plain, then runs through the farmland of the Chaouia past Settat and Berrechid. Around Casablanca the car joins the coastal motorway for the last stretch to Rabat. It is dual carriageway all the way, with tolls and service areas along it.
Traffic moves well until the Casablanca area. On weekdays the run into Rabat can slow between 17:00 and 19:00, so a morning start avoids it.
Seeing Rabat
The Hassan Tower, a 12th-century minaret that was never finished, stands next to the Mausoleum of Mohammed V on a rise above the Bouregreg river.
At the river mouth, the Kasbah of the Udayas is a walled quarter of blue and white lanes with a terrace cafe facing the Atlantic. The medina below is small and much calmer than the one in Marrakech.
At the edge of the city, the Chellah has Roman ruins and a Marinid burial ground. Storks nest on the old walls in spring. Allow an hour.
Train or private car
ONCF runs several trains a day from Marrakech to Rabat Ville in around 4 hours. First class is air-conditioned, and one ticket costs far less than a car.
The car wins on the ends of the trip: pickup at your riad, room for every suitcase, and drop-off at any address in Rabat with no taxi. For three or more people, add up the train tickets and the taxis at both ends, then compare with our per-car quote.
Going on to Casablanca or Tangier
Rabat sits on the motorway between Casablanca and Tangier. If you are going from Marrakech to Rabat, a stop in Casablanca on the way is easy. The driver parks while you visit and you carry on the same day.
For Tangier, Rabat is about halfway. Splitting the trip there lets you see the capital without doubling back. Each leg gets its own quote, sent before you travel.
When to go
The motorway has no mountain pass and does not close for weather. In summer the plains get hot, and the car is air-conditioned.
Leave by mid-morning to be in Rabat for lunch. On the way back, an afternoon start gets you to Marrakech before dark.
Morocco airport transfer prices and booking questions
What does a Marrakech-to-Rabat transfer cost?
Send your date, pickup address and group size. The dispatch desk replies with one price for the car, not per person, on WhatsApp or email before you travel.
How long is the Marrakech-to-Rabat drive?
About 3 h 45 for 319 km on the motorway, without long stops.
Should I take the train instead of a private transfer?
On your own with a small bag, the train is cheaper. With a family, a group or a lot of luggage, the car is quicker door to door and saves the taxi at each end.
Is a Casablanca stop possible en route to Rabat?
Yes. Casablanca is on the way. The driver can park while you visit the Hassan II Mosque, then drive on to Rabat. Allow about 2 extra hours, depending on how long you stay. Put the stop in your request so it is in the quote.
