Transportation & Logistics

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.

Hamid Bouragaa & MerzougaWay Team
6 min read

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:

Guide updated and verified for the 2026 travel season.

Free Interactive Tool

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

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.

What Our Travelers Say

Real reviews from Google and TripAdvisor

MA
Manuela Ardila
Family trip · Google

We traveled to Morocco in a group of 6 adults, including my parents, who are already seniors, in the middle of summer. For my family it was a leap of faith to trust an agency we found online for the first time, but it turned out to be a wonderful surprise. Hamid, the trip organizer, was very kind and attentive both before and throughout the whole tour. It was a fully personalized tour - we got to do everything we wanted, from visiting the Sahara to enjoying the beach. He always looked out for our comfort, especially my parents': comfortable transport, well-timed stops at places with restrooms, beautiful air-conditioned hotels, and varied, plentiful food. Thanks to his organization we were able to enjoy the trip with real peace of mind. It was a great experience we would absolutely recommend.

CG
Carlos Guitian
Self-drive trip · Google

Last week I did a self-drive trip from Fes to Merzouga, leaving the car rental, the riad in Merzouga, the desert camp, and the guided desert activities all in the hands of MerzougaWay and Hamid, and I can only say that everything was perfectly organized, right on time. Thanks to everyone at the riad we stayed at and the desert camp, as well as the guides who joined us for the 4x4 experience, Berber culture, and the camel transfer. Thanks to Hamid and MerzougaWay for that quad-bike ride back to the riad from the camp - what an experience, riding a quad across the dunes early in the morning. If you're thinking of traveling to Merzouga, I definitely recommend Hamid as the organizer of your adventure.

FK
Flor K
Apr 2026 • Friends · TripAdvisor

Excellent!! We loved the tour. Thank you Hamid for everything. Everything well organized, the guide Eljo (Elhousain) was very attentive, highly recommend. Everything super clean, we had a great driver, we felt very safe with him. Unbeatable desert excursion. Thanks MerzougaWay!

OK
Oguzhan K
Mar 2026 • Couples · TripAdvisor

Trustworthy tour agency. I wrote Hamid what I wanted and he just made it happen. He arranged everything so quick and smooth. We had a 3-day Merzouga tour from Marrakech. Said was our guide and he made me and my wife very comfortable. He took us from our riad and carried us in his modern 4x4 Toyota to magnificent places. He gave us the confidence to ask him whatever we wanted to do and wherever we wanted to drive - like old friends. He is open-minded and respectful. I recommend asking the agency for Said to be your driver. In the 3-day tour you cross the Atlas mountains, stay one night in a perfect hotel in Dades with great food, then stay one night in Erg Chebbi dunes in a luxury glamp camp. One night wasn't enough for a real desert experience - if you have time, take two nights in the desert.

SB
Sara B
Mar 2026 • Friends · TripAdvisor

Unforgettable holiday. An 8-day itinerant tour in Morocco, including 3 days organized by Hamid - MerzougaWay: a route from Fes to Marrakech, spending a night in the desert and in Ouarzazate. Our guide Youssef, who drove us all along the way, was very professional and took us to try real experiences that not all tourists get to see. Breathtaking landscapes - Morocco amazed and fascinated us. We drove many miles but still traveled comfortably. Absolutely recommend it - they are a highly professional agency and managed to take us to unique places, like a Berber village in the desert where we were the only tourists. A spectacular, unforgettable experience.

S
Simona
Mar 2026 • Friends · TripAdvisor

Morocco from the heart with MerzougaWay. Heartfelt congratulations to Hamid, who organized our trip impeccably - present, correct, and extremely helpful. A special mention for our driver Ali, who was by our side through 3 intense days toward the desert: attentive, polite, discreet, and a genuinely good, nice driver. We found snow in the Atlas range and then sun in Ait Ben Haddou, visited women's cooperatives working argan oil and roses, saw the Dades Gorges, and finally reached the Sahara dunes by camel before sleeping in a tented desert camp. 3 intense and exciting days. Next time in Morocco I'll rely on you again, inshallah!

Read more reviews on

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

9 min read
Direct bus from Marrakech to Merzouga: Supratours #502 timetable (08:30 AM daily, 12 hrs, 260 MAD). Ticket booking tips, CTM vs Supratours, and desert camp arrival.
10 min read
The complete 2026 guide to renting a car in Marrakech. Compare airport vs Guéliz agencies, insurance policies, credit card deposit rules, common rental scams, and driving tips.
9 min read
Do Marrakech taxis take credit cards or Apple Pay? No—they are 100% cash-only in Dirhams (MAD). Full 2026 guide: Taximeter rules, airport rates (RAK), and taxi apps.