Distance from Rabat to Marrakech: Highway Drive, Trains & Bus (2026)
The distance from Rabat to Marrakech is 325 km (202 miles). Complete 2026 guide comparing the 3.5h drive via A7 highway, direct ONCF trains (150 MAD) & bus options.
Rabat and Marrakech are two of Morocco's most visited imperial cities, and connecting them is one of the most straightforward journeys in the country. Unlike the winding mountain crossings of the High Atlas, this route runs entirely along Morocco's modern multi-lane toll highway network (A1, A3, and A7 autoroutes) and the electrified national railway corridor.
The road distance between Rabat and Marrakech is 325 kilometers (202 miles), and driving takes approximately 3.5 to 4 hours under normal traffic conditions.
[!NOTE] Rabat to Marrakech Travel Fast Facts (2026)
- Road Distance: 325 km (202 miles) via the A1/A3/A7 toll motorways.
- Self-Drive Time: ~3 hours 30 minutes to 4 hours of direct highway driving.
- Highway Tolls: Approximately 85 to 110 MAD (~€8–€10) total one-way.
- Direct Train (ONCF Al Atlas): ~3 hours 35 minutes; departs every 1–2 hours from Rabat-Ville and Rabat-Agdal directly to Marrakech Gare.
- Train Fares: 130–170 MAD (2nd Class) / 200–260 MAD (1st Class).
- High-Speed Rail (Al Boraq): High-speed extension southward from Casablanca to Marrakech is currently under construction for the 2030 World Cup; the current service operates as conventional Al Atlas express train.
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ RABAT TO MARRAKECH TRANSPORT COMPARISON MATRIX │
├─────────────────┬──────────────┬──────────────────┬─────────────────┬──────────────────┤
│ TRANSPORT MODE │ DURATION │ COST (MAD) │ DEPARTURES │ BEST FOR │
├─────────────────┼──────────────┼──────────────────┼─────────────────┼──────────────────┤
│ **ONCF Train** │ 3h 35m │ 130 – 250 MAD │ Hourly (Daily) │ #1 Recommendation│
│ **Rental Car** │ 3h 30m │ 300 MAD Gas+Toll │ On your schedule│ Groups & Freedom │
│ **Private Driver│ 3h 30m │ 1,800 – 2,400 MAD│ Door-to-Door │ Families & VIP │
│ **CTM Bus** │ 4h 30m – 5h │ 110 – 140 MAD │ 4–6 Daily │ Budget Travelers │
└─────────────────┴──────────────┴──────────────────┴─────────────────┴──────────────────┘
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.
Frequently Asked Questions (FAQ)
What is the exact driving distance between Rabat and Marrakech?
The driving distance along the A1, A3, and A7 toll highways is 325 kilometers (202 miles), which takes between 3 hours 30 minutes and 4 hours.
Can you take a train directly from Rabat to Marrakech without changing?
Yes! ONCF operates direct Al Atlas intercity trains connecting Rabat-Ville and Rabat-Agdal stations directly to Marrakech without needing to change trains in Casablanca. The journey takes approximately 3 hours and 35 minutes.
Is the Al Boraq high-speed train running between Rabat and Marrakech?
Not yet. The high-speed Al Boraq train currently runs between Tangier, Kenitra, Rabat, and Casablanca. An extension from Casablanca to Marrakech is under construction for the 2030 World Cup. Until completion, comfortable conventional Al Atlas express trains serve the route.
How much do highway tolls cost between Rabat and Marrakech?
Tolls for a passenger car between Rabat and Marrakech total approximately 85 to 110 MAD (~€8–€10), payable in cash or via Moroccan Jawaz electronic toll passes at the toll plazas.
Is it easy to do a day trip from Rabat to Marrakech?
While technically possible by catching an early 06:30 AM train and returning late, Marrakech is best enjoyed over at least 2 to 3 days to explore its historic medina, palaces, souks, and nearby desert excursions.
Continue from Marrakech into the Sahara with MerzougaWay
Arriving in Marrakech from Rabat and ready to experience the real golden dunes of the Moroccan desert? MerzougaWay is an indigenous Berber tour company organizing private 4x4 Sahara expeditions directly from Marrakech to Erg Chebbi:
- Explore Popular Desert Tours: 3-Day & 4-Day Marrakech to Merzouga Tours
- Direct WhatsApp Inquiries: +212 675 203 319 / +212 668 534 981
- Email: [email protected]
Guide updated and verified for the 2026 travel season.
Sahara Route & Drive-Time Estimator
Calculate realistic driving hours across the High Atlas (Tizi n'Tichka pass), compare scenic stops (Dadès, Todra, Ziz), and plan your custom desert itinerary.
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.


