• Our partners include:

  • Booking.com
  • Skyscanner
  • Airbnb
  • Expedia
  • Uber
  • Rentalcars.com

There are 7 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  •  3h 37m

  1. Take the train from Marrakech to Rabat Ville

$14 - $27

Cheapest option

Bus, train  •  5h 10m

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

$13 - $23

5 alternative options

Grand Taxi  •  4h 35m

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

$18 - $39

Drive  •  3h 12m

  1. Drive from Marrakesh to Rabat 203.3 miles

$30 - $45

Fly to Casablanca, train  •  3h

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

$113 - $333

Fly to Rabat  •  6h 23m

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

$48 - $172

Fly to Tangier, Grand Taxi  •  4h 38m

  1. Fly from Marrakech (RAK) to Tangier (TNG) RAK - TNG
  2. Take the Grand Taxi from Tangier to Rabat

$171 - $423

Questions & Answers

The cheapest way to get from Marrakesh to Rabat is to bus and train which costs MAD 120 - MAD 220 and takes 5h 10m.

More details

The quickest way to get from Marrakesh to Rabat is to fly and train which costs MAD 1,000 - MAD 3,200 and takes 3h.

More details

Yes, there is a direct train departing from Marrakech and arriving at Rabat Ville. Services depart hourly, and operate every day. The journey takes approximately 3h 37m.

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 3h 37m and costs MAD 130 - MAD 250.

More details

The train from Marrakech to Rabat Ville takes 3h 37m including transfers and departs hourly.

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 3h 37m and costs MAD 130 - MAD 250. Alternatively, you can fly, which costs MAD 450 - MAD 1,700 and takes 6h 23m.

Mode details

The quickest flight from Marrakech Airport to Casablanca Airport is the direct flight which takes 50m.

Search flights

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

More details

Map of how to get from Marrakesh to Rabat.
Launch map view
  • Distance: 178.8 miles
  • Duration: 3h 37m

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

Moroccan Railways (ONCF) operates a train from Marrakesh to Rabat hourly. Tickets cost $14 - $27 and the journey takes 3h 37m. Alternatively, Royal Air Maroc, Ryanair and four other airlines fly from Marrakesh to Rabat 4 times a day.

Airlines
Royal Air Maroc
Website
royalairmaroc.com
Flights from Marrakech to Casablanca
Ave. Duration
50m
When
Every day
Estimated price
$100 - $450
Flights from Marrakech to Rabat via Marseille
Ave. Duration
6h 15m
When
Saturday
Estimated price
$140 - $550
Flights from Marrakech to Rabat via Paris Orly
Ave. Duration
7h 2m
When
Every day
Estimated price
$150 - $650
Flights from Marrakech to Rabat via Casablanca, Madrid
Ave. Duration
7h 35m
When
Monday and Friday
Estimated price
$120 - $390
Flights from Marrakech to Tangier via Casablanca
Ave. Duration
2h 57m
When
Every day
Estimated price
$180 - $550
Ryanair
Website
ryanair.com
Flights from Marrakech to Rabat via Madrid
Ave. Duration
7h 25m
When
Monday and Friday
Estimated price
$30 - $150
Flights from Marrakech to Rabat via Rome Ciampino
Ave. Duration
12h 10m
When
Tuesday and Saturday
Estimated price
$60 - $220
TUI fly Belgium
Website
tuifly.be
Flights from Marrakech to Rabat via Paris Orly
Ave. Duration
7h 40m
When
Friday
Estimated price
$120 - $650
Air France
Website
airfrance.com
Flights from Marrakech to Rabat via Paris CDG
Ave. Duration
10h 20m
When
Tuesday, Wednesday, Thursday, Saturday and Sunday
Estimated price
$190 - $800
Air Arabia Maroc
Website
airarabia.com
Flights from Marrakech to Tangier
Ave. Duration
1h 10m
When
Wednesday, Friday and Sunday
Estimated price
$65 - $220
Train operators
Moroccan Railways (ONCF)
Email
ketary@oncf.ma
Website
oncf.ma
Train from Marrakech to Rabat Ville
Ave. Duration
3h 37m
Frequency
Hourly
Estimated price
$14 - $27
Website
Moroccan Railways (ONCF)
2nd Class
$14 - $18
1st Class
$18 - $27
Train from Casablanca Port to Rabat Ville
Ave. Duration
1h 11m
Frequency
Hourly
Estimated price
$4 - $9
Website
Moroccan Railways (ONCF)
2nd Class
$4 - $5
1st Class
$6 - $9
Train from Casa-Voyageurs to Rabat Ville
Ave. Duration
56m
Frequency
Every 30 minutes
Estimated price
$4 - $9
Website
Moroccan Railways (ONCF)
2nd Class
$4 - $5
1st Class
$5 - $9
Bus operators
CTM
Phone
0800090030
Email
ctmweb.ma@gmail.com
Website
ctm.ma
Bus from Marrakech to Casablanca
Ave. Duration
3h 30m
Frequency
Hourly
Estimated price
$9 - $14
Website
CTM
Regular
$10
Comfort Plus
$10
Premium
$14
Other operators
Grand Taxis
Email
info@HeyMorocco.com
Website
heymorocco.com
Rideshare from Marrakesh to Casablanca
Ave. Duration
3h
Frequency
Hourly
Estimated price
$11 - $29
Schedules at
heymorocco.com
Rideshare from Casablanca to Rabat
Ave. Duration
1h 5m
Frequency
Hourly
Estimated price
$6 - $11
Schedules at
heymorocco.com
Rideshare from Tangier to Rabat
Ave. Duration
2h 40m
Frequency
Hourly
Estimated price
$11 - $29
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 4 of the smartest ways to explore Australia, How do I get from Sydney to Melbourne and How to get from Gatwick Airport into central London - to help you get the most out of your next trip.

More Questions & Answers

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

Get driving directions

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

Search flights

There are 369+ hotels available in Rabat. Prices start at $48 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 taxi which takes 7m and costs MAD 75 - MAD 90.

More details