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 - $40

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

$121 - $340

Fly to Rabat  •  8 h 1 min

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

$56 - $179

Questions & Answers

The cheapest way to get from Marrakesh to Rabat is to bus and train which costs MAD 120 - MAD 210 and takes 5 h 20 min.

More details

The quickest way to get from Marrakesh to Rabat is to drive which costs MAD 280 - MAD 410 and takes 3 h 12 min.

More details

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 MAD 130 - MAD 250.

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 MAD 130 - MAD 250. Alternatively, you can fly, which costs MAD 500 - MAD 1,700 and takes 8 h 1 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, TUI fly Belgium and five other airlines fly from Marrakesh to Rabat every 4 hours.

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 Paris Orly
Ave. Duration
7 h 5 min
When
Every day
Estimated price
$150 - $650
Flights from Marrakech to Rabat via Casablanca, Marseille
Ave. Duration
7 h 40 min
When
Saturday
Estimated price
$140 - $550
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
6 h 15 min
When
Tuesday, Thursday and Saturday
Estimated price
$30 - $150
Flights from Marrakech to Rabat via Rome Ciampino
Ave. Duration
8 h 25 min
When
Tuesday and Saturday
Estimated price
$60 - $220
Flights from Marrakech to Rabat via Marseille
Ave. Duration
8 h 45 min
When
Tuesday and Saturday
Estimated price
$50 - $200
Flights from Marrakech to Rabat via Charleroi
Ave. Duration
8 h 55 min
When
Tuesday, Thursday and Saturday
Estimated price
$65 - $230
Flights from Marrakech to Rabat via London Stansted
Ave. Duration
9 h 20 min
When
Tuesday, Thursday and Saturday
Estimated price
$65 - $240
TUI fly Belgium
Website
tuifly.be
Flights from Marrakech to Rabat via Paris Orly
Ave. Duration
8 h 21 min
When
Tuesday, 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
Air France
Website
airfrance.com
Flights from Marrakech to Rabat via Paris CDG
Ave. Duration
12 h 30 min
When
Every day
Estimated price
$190 - $800
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
$19 - $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 - $6
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 Travelling to the UK: What do I need to know?, 5 delightfully under-the-radar French towns you need to visit and South Korea: Travelling from Seoul to Busan - to help you get the most out of your next trip.