How to get from Marrakech to Rabat

Marrakech and Rabat, two enchanting cities in Morocco, beckon travellers with their rich history, vibrant culture, and unique charm. If you find yourself in the bustling markets of Marrakech and wish to explore the coastal allure of Rabat, you're in for a treat. Navigating the distance between these two cities is an adventure in itself, with multiple transportation options offering a variety of experiences. On this page, we tell you all about how to get from Marrakech to Rabat.

How to get from Marrakech to Rabat 

You can embark on the journey from Marrakech to Rabat through various travel options. Opt for a self-driven adventure by renting a car for flexibility and scenic detours, or enjoy the convenience of a 3.5-hour train ride with regular services. 

Alternatively, buses and grand taxis offer budget-friendly choices, ensuring a diverse and enriching experience as you cover the 327-kilometre stretch between these two Moroccan gems.

If you’re planning a trip to Morocco, you won’t want to miss our Morocco itineraries. Each is expertly designed to allow you to make the most of your trip.

Entrance gate to the Kasbah of the Udayas (Kasbah des Oudaias), Rabat, Morocco © Glen Berlin/Shutterstock

Entrance gate to the Kasbah of the Udayas, Rabat, Morocco © Glen Berlin/Shutterstock

How far is Rabat from Marrakech?

The road from Marrakech to Rabat stretches approximately 330 kilometres (205 miles). The journey traverses diverse landscapes, from the bustling markets of Marrakech to the historic sites along the way, offering a glimpse into Morocco's rich tapestry.

Travelling in Morocco? Make sure to read all about getting around in Morocco.

What's the quickest way to get from Marrakech to Rabat? 

If you’re looking for the fastest way from Marrakech to Rabat, you have a few options:

  • By train: This route will take you roughly 3.5 hours and will allow you to sit back and enjoy the scenery
  • By rental car: Though more expensive, a rental car will often take around 3.5 hours as well — though may take longer if stops are made.
  • By grand taxi: This route also allows you to sit back and enjoy and will take around 4 hours
  • By bus: Though this is the most budget-friendly option, it is also the one that takes the most amount of time. A bus between Marrakech and Rabat will take around 5 hours.

Planning a trip to Marrakech? Start preparing for your trip with our guide to the best accommodation options in Marrakech.

chellah-rabat-morocco-shutterstock_607559372

Rabat, Morocco © Shutterstock

By rental car (self-drive)

Duration: 3.5 hours | Cost: from €33 / day + petrol

For those who relish the idea of a self-curated adventure, renting a car proves to be an enticing option. The 3.5-hour journey not only grants you the freedom to explore at your own pace but also allows for spontaneous stops at intriguing sites along the way. However, it's worth noting that tolls add to the overall cost, contributing to the convenience of this mode of transport.

Consider planning your route to include iconic stops like Casablanca or the historic city of Sale for an enriched road trip experience.

By train

Duration: 3.5 hours | Cost: from €28

The train journey from Marrakech to Rabat provides a convenient and comfortable alternative. With air-conditioned services running regularly, the approximately 3.5-hour trip not only offers a relaxing experience but also showcases the picturesque Moroccan scenery. 

Tickets, available at the station or through online platforms, make for a hassle-free boarding process, and Moroccan Railways (ONCF) ensures a smooth and scenic ride between these two cities.

Consider travelling in first class for added comfort and panoramic views during your train journey.

Koutoubia mosque in Marrakech, Morocco © Migel/Shutterstock

Koutoubia mosque in Marrakech, Morocco © Migel/Shutterstock

By bus

Duration: 5 hours | Cost: from €14

Opting for the bus allows travellers to unwind and immerse themselves in the landscapes at a more leisurely pace. CTM and Supratours, the two prominent bus operators on this route, offer a budget-friendly alternative without compromising on comfort. 

The extended travel time provides an opportunity to appreciate the changing scenery and perhaps strike up conversations with fellow passengers, creating a communal travel experience.

By grand taxi

Duration: 3.5 hours | Cost: varies

Grand taxis, also known as shared taxis, provide a unique mode of transportation between Marrakech and Rabat. Although relatively pricier compared to buses or trains, these large, older-model cars follow specific routes, connecting major urban centres and rural areas. 

The shared camaraderie with fellow travellers enhances the journey, adding a social dimension to the travel experience.

While taking this route be sure to engage in conversations with locals during your grand taxi journey to gain insights into Moroccan culture and traditions.

Inspired? Among our 10-day Morocco itineraries, you can find an itinerary that suits you, combining some of Morocco's stunning cities.

Inside the bustle of the medina

Inside the bustle of the Marrakech medina © Shutterstock

Why is Rabat worth a visit?

Beyond the logistics of travel, Rabat emerges as a destination brimming with cultural riches and historical significance. As the capital city of Morocco, Rabat invites exploration of its unique character, blending historical sites like the Kasbah of the Udayas with modern infrastructure and a lively cultural scene. From the tranquil Chellah Gardens to the bustling medina, Rabat promises a mosaic of experiences that weave seamlessly into the tapestry of Moroccan heritage.

Want to be better prepared for your trip to Morocco? Read our useful travel tips for travelling to Morocco.

Planning your dream trip to Morocco

Uncover the enchanting allure of Morocco with the guidance of our local travel experts. We take care of every detail of the planning and booking for your adventure.

Whenever you're ready to set off on your journey, contact us, and we'll create a tailor-made itinerary to suit your desires. Explore our existing Morocco itineraries for inspiration, knowing that each one can be adjusted to meet your specific preferences.

Dre Roelandt

written by
Dre Roelandt

updated 20.05.2024

Dre Roelandt is originally from the United States but lives and works in Berlin, Germany. Dre is a freelance writer and artist with a passion for travelling. They are an in-house Senior Content Editor at Rough Guides.

Ready to travel and discover
Morocco?

Get support from our local experts for
stress-free planning & worry-free travels

Plan my trip ⤍