There are 6 ways to get from Marrakesh to Rabat by train, bus, rideshare, 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.

Recommended option

Train  •  4 h 53 min

  1. Take the train from Marrakech to Rabat Ville

$14 - $27

Cheapest option

Bus, train  •  5 h 20 min

  1. Take the bus from Marrakech to Casablanca
  2. Take the train from Casablanca Port to Rabat Ville

$14 - $22

4 alternative options

Grand Taxi  •  4 h 35 min

  1. Take the Grand Taxi from Marrakesh to Casablanca
  2. Take the Grand Taxi from Casablanca to Rabat

$18 - $39

Drive  •  3 h 12 min

  1. Drive from Marrakesh to Rabat 203.3 miles

$30 - $45

Fly to Casablanca, train  •  4 h 54 min

  1. Fly from Marrakech (RAK) to Casablanca (CMN) RAK - CMN
  2. Take the train from Casa-Voyageurs to Rabat Ville

$120 - $339

Fly to Rabat  •  7 h 6 min

  1. Fly from Marrakech (RAK) to Rabat (RBA) RAK - RBA

$55 - $178

Questions & Answers

Yes, there is a direct train departing from Marrakech and arriving at Rabat Ville. Services depart every four hours. The journey takes approximately 4 h 53 min.

More details

The distance between Marrakesh and Rabat is 286 km. The road distance is 325.3 km.

Get driving directions

The best way to get from Marrakesh to Rabat without a car is to train which takes 4 h 53 min and costs .

More details

The train from Marrakech to Rabat Ville takes 4 h 53 min including transfers and departs every four hours.

More details

Marrakesh to Rabat train services, operated by Moroccan Railways (ONCF), depart from Marrakech station.

More details

The best way to get from Marrakesh to Rabat is to train which takes 4 h 53 min and costs . Alternatively, you can fly, which costs and takes 7 h 6 min.

Mode details

The quickest flight from Marrakech Airport to Casablanca Airport is the direct flight which takes 45 min.

Search flights

Marrakesh to Rabat train services, operated by Moroccan Railways (ONCF), arrive at Rabat Ville station.

More details

Yes, the driving distance between Marrakesh to Rabat is 325 km. It takes approximately 3 h 12 min to drive from Marrakesh to Rabat.

Get driving directions

Royal Air Maroc offers flights from Marrakech Airport to Casablanca Airport.

Search flights

Map of how to get from Marrakesh to Rabat.
Launch map view
  • Distance: 178.8 miles
  • Duration: 4 h 53 min

What companies run services between Marrakesh, Morocco and Rabat, Morocco?

Moroccan Railways (ONCF) operates a train from Marrakesh to Rabat every 4 hours. Tickets cost $14 - $27 and the journey takes 4 h 53 min. Alternatively, Ryanair, Royal Air Maroc and five other airlines fly from Marrakesh to Rabat 5 times a day.

Airlines
Royal Air Maroc
Website
royalairmaroc.com
Flights from Marrakech to Casablanca
Ave. Duration
47 min
When
Every day
Estimated price
$100 - $450
Flights from Marrakech to Rabat via Marseille
Ave. Duration
6 h 15 min
When
Saturday
Estimated price
$140 - $550
Flights from Marrakech to Rabat via Paris Orly
Ave. Duration
7 h 5 min
When
Every day
Estimated price
$150 - $650
Flights from Marrakech to Rabat via Casablanca, Madrid
Ave. Duration
7 h 40 min
When
Monday and Friday
Estimated price
$120 - $390
Ryanair
Website
ryanair.com
Flights from Marrakech to Rabat via Madrid
Ave. Duration
5 h 20 min
When
Thursday
Estimated price
$30 - $150
Flights from Marrakech to Rabat via Marseille
Ave. Duration
8 h 20 min
When
Tuesday, Thursday and Saturday
Estimated price
$50 - $200
Flights from Marrakech to Rabat via Rome Ciampino
Ave. Duration
8 h 25 min
When
Tuesday and Saturday
Estimated price
$60 - $220
TUI fly Belgium
Website
tuifly.be
Flights from Marrakech to Rabat via Paris Orly
Ave. Duration
7 h 30 min
When
Friday and Sunday
Estimated price
$120 - $650
Transavia France
Website
transavia.com
Flights from Marrakech to Rabat via Paris Orly
Ave. Duration
8 h 55 min
When
Tuesday, Thursday and Saturday
Estimated price
$110 - $550
Train operators
Moroccan Railways (ONCF)
Email
ketary@oncf.ma
Website
oncf.ma
Train from Marrakech to Rabat Ville
Ave. Duration
4 h 53 min
Frequency
Every 4 hours
Estimated price
$14 - $27
Schedules at
oncf.ma
2nd Class
$14 - $18
1st Class
$18 - $27
Train from Casablanca Port to Rabat Ville
Ave. Duration
1 h 13 min
Frequency
Hourly
Estimated price
$4 - $9
Schedules at
oncf.ma
2nd Class
$4 - $5
1st Class
$6 - $9
Train from Casa-Voyageurs to Rabat Ville
Ave. Duration
1 h 7 min
Frequency
Every 30 minutes
Estimated price
$4 - $9
Schedules at
oncf.ma
2nd Class
$4 - $5
1st Class
$6 - $9
Bus operators
CTM
Phone
0800090030
Email
ctmweb.ma@gmail.com
Website
ctm.ma
Bus from Marrakech to Casablanca
Ave. Duration
3 h 45 min
Frequency
Hourly
Estimated price
$9 - $13
Schedules at
ctm.ma
Regular
$10
Comfort Plus
$11
Premium
$13
Other operators
Grand Taxis
Email
info@HeyMorocco.com
Website
heymorocco.com
Rideshare from Marrakesh to Casablanca
Ave. Duration
3 h
Frequency
Hourly
Estimated price
$11 - $29
Schedules at
heymorocco.com
Rideshare from Casablanca to Rabat
Ave. Duration
1 h 5 min
Frequency
Hourly
Estimated price
$6 - $11
Schedules at
heymorocco.com

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 How do I buy a London Underground ticket?, How to get from Luton Airport into central London and How do I get from Sydney to Melbourne - to help you get the most out of your next trip.

More Questions & Answers

There are 338+ hotels available in Rabat. Prices start at $46 USD per night.

More details

Check out Blablacar's carpooling service for rideshare options between Marrakesh and Rabat. A great option if you don't have a driver's licence or want to avoid public transport.

Read Rome2rio's guide to Blablacar

The best way to get from Marrakesh to Marrakech Airport is to line 19 Airport Shuttle Bus which takes 30 min and costs .

More details