Distance Between Rabat and Marrakech: Travel Guide

Rabat to Marrakech is around 320-330km via Morocco's toll autoroute, roughly 3.5-4 hours by car or a bit longer by train or bus — here's how the honest options actually compare.

MerzougaWay Team
4 min read

Distance Between Rabat and Marrakech: Complete Travel Guide

Rabat and Marrakech are two of Morocco's most visited cities, and connecting them is one of the more straightforward journeys in the country — mostly because it runs along a proper toll autoroute rather than the winding mountain roads that make some other Moroccan routes slower than the distance suggests. The road distance is roughly 320-330km, and driving it takes about 3.5-4 hours under normal conditions.

The route itself

The A7 autoroute runs almost the whole way, passing through or near Casablanca and Settat before reaching Marrakech — it's a modern, well-maintained toll highway, and tolls for the full stretch add up to a modest amount rather than anything that meaningfully affects trip cost. The scenery is unremarkable for the first stretch out of Rabat (flat agricultural plains and the edge of Casablanca's urban sprawl), picking up noticeably in the final approach to Marrakech as the Atlas foothills and the city's palm groves come into view.

Getting there without driving

Train is a genuinely comfortable alternative and probably the easiest option if you'd rather not drive — ONCF's Al Atlas service runs Rabat to Marrakech roughly hourly through the day, with the direct trip taking about three and a half to four hours. Fares run somewhere in the 140-250 MAD range one-way depending on class and how far ahead you book (2nd class at the lower end, 1st class and last-minute fares toward the top) — check oncf-voyages.ma for the exact fare on your travel date rather than trusting a fixed number, since ONCF's pricing shifts with demand. It's worth knowing that Morocco's Al Boraq high-speed line, which gets a lot of attention, currently runs between Tangier and Casablanca/Kenitra — a roughly 430km southward extension toward Marrakech is under construction (launched 2025) as part of Morocco's 2030 World Cup rail push, but it isn't expected to open for a few more years, so for now the Rabat-Marrakech train is a normal (if frequent and reliable) intercity service rather than the high-speed one, despite what you might read elsewhere. Buses (CTM and Supratours are the main national operators) also run the route directly, generally taking a bit longer than the train and priced somewhat below it, and are the cheapest option if budget matters more than comfort.

Driving it yourself

If you're renting a car, this is one of the easier long-distance drives in Morocco specifically because the autoroute is fast, well-signed, and doesn't involve mountain passes the way the Marrakech-Merzouga route does. A standard international license is generally accepted for tourists, though it's worth checking current requirements for your nationality before you book. Fuel and toll costs for the trip are modest — expect to budget for both, but neither is a significant expense on a journey this length.

Worth stopping for

If you have any flexibility in your schedule, Casablanca sits roughly on the route and is worth a detour even if it's just for the Hassan II Mosque, one of the largest mosques in the world and one of the few in Morocco open to non-Muslim visitors for guided tours. Beyond that, the direct autoroute doesn't pass through much else worth a dedicated stop — this is a functional, efficient drive rather than a scenic one, which is exactly why most travelers treat it as a transit day rather than part of the sightseeing itinerary.

Common questions

Whether this trip is doable in a single day comes up constantly, and the answer is straightforwardly yes — at 3.5-4 hours by car or around 4-4.5 by train, you can easily leave Rabat in the morning and have a full afternoon and evening in Marrakech. People also ask which option is genuinely best: for comfort without the hassle of driving, the train is hard to beat; for flexibility, especially traveling as a group where the cost splits well, a rental car wins; and if budget is the only concern, the bus is the cheapest of the three, at the cost of a somewhat longer and less comfortable ride.

Need help arranging onward travel or tours once you're in Marrakech?

Last updated: August 2026.

MerzougaWay Team

MerzougaWay Team

We are a passionate team of local guides dedicated to sharing the beauty and culture of our home, Morocco. Our journey began with a simple desire to offer authentic, memorable experiences that go beyond the typical tourist trails.

Ready to Start Your Adventure?

Contact us today and let's plan your perfect Moroccan desert experience

Recommended Tours

Book your Morocco desert adventure

Related Posts

7 min read
Discover the relationship between Marrakech and the Atlas Mountains. Your complete 2026 guide to visiting the High Atlas from Marrakech, including distances, best day trips, and travel tips.
5 min read
Discover how to find the cheapest flights to Marrakech with our comprehensive 2026 guide. Learn about the best time to book, budget airlines, and insider tips for saving on your next trip to Morocco's Red City.
5 min read
Discover the truth about paying for taxis in Marrakech - which taxis accept cards, how to pay with your phone, and essential cash-free travel tips for 2026.