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.
Master Transit Comparison Matrix: Rabat to Marrakech
Connecting Morocco's political and administrative capital on the Atlantic coast—Rabat—with its primary tourism and desert hub—Marrakech—is one of the most frequently traveled intercity corridors in the Kingdom. Covering a distance of approximately 320 to 330 kilometers (200 to 205 miles), this modern transportation axis links imperial heritage, administrative elegance, and Saharan adventure.
The following master comparison table evaluates all primary modes of transit between Rabat and Marrakech:
| Mode of Transit | Typical Travel Time | Schedule Frequency | Approximate Cost per Person (MAD / EUR) | Comfort & Convenience Rating | Recommended Traveler Type | | :--- | :--- | :--- | :--- | :--- | :--- | | Direct ONCF Al Atlas Intercity Train | 3 hrs 25 mins to 3 hrs 45 mins | 8 to 10 Direct Trains Daily | 140 MAD (2nd Class) / 215 MAD (1st Class) (~€13 – €20) | Excellent; spacious seats, air conditioned, city-center to city-center | Best Overall: Independent travelers, couples, digital nomads | | Self-Drive Rental Car (A1 & A3 Autoroute) | 3 hrs 15 mins to 3 hrs 30 mins | 100% on your own schedule | ~350 MAD fuel + 110 MAD tolls (~€42 EUR total) | High flexibility; requires driving through urban motorway traffic | Families and road-trippers planning multi-city loops | | Private Chauffeur Transfer | 3 hrs 15 mins (Door-to-door) | On demand, 24/7 | 2,200 – 3,500 MAD (€200 – €320) per vehicle | Maximum luxury; private Mercedes van with Wi-Fi & door service | Business travelers, luxury vacationers with heavy luggage | | CTM / Supratours Highway Coach | 4 hrs 30 mins to 5 hrs 00 mins | 4 to 6 Departures Daily | 120 – 140 MAD (~€11 – €13 EUR) | Moderate; comfortable bus but slower than the direct train | Budget travelers when train departures are fully booked | | Combined Al Boraq (High-Speed) + Al Atlas | 3 hrs 10 mins (includes transfer) | Hourly to Casa, then transfer | 180 – 260 MAD (~€16 – €24 EUR) | High; experiences 320 km/h bullet train to Casa-Voyageurs | Rail enthusiasts wanting to test Africa's fastest train |
ONCF Train Travel: Stations, Classes, and Onboard Logistics
The Moroccan national railway network (ONCF) provides the most relaxed, punctual, and scenic connection between Rabat and Marrakech:
- Departure and Arrival Stations: Trains depart from both Rabat-Agdal (the primary modern hub serving the diplomatic and business district) and Rabat-Ville (located adjacent to the historic medina). In Marrakech, trains terminate at the magnificent Gare de Marrakech in Gueliz, situated just 10 minutes by petit taxi from Place Jemaa el-Fna.
- 1st Class vs 2nd Class Differences:
- 1st Class (215 MAD / ~€20 EUR): Features assigned reserved seating in air-conditioned 6-person closed compartments or spacious 2+1 open-salon carriages. Seats are wider, recline further, provide fold-down work tables, and feature European 220V electric charging sockets. Ideal for travelers with laptops or those carrying large luggage.
- 2nd Class (140 MAD / ~€13 EUR): Clean, comfortable 2+2 open seating. While perfectly safe and air-conditioned, seats are unassigned—meaning during peak Friday afternoon and holiday travel windows, passengers must board promptly to secure adjacent seats.
- Onboard Amenities: Trains feature clean Western and squat toilets at the end of each car, as well as a rolling refreshment cart or dedicated buffet car (Voiture Bar) selling fresh espresso, bottled water, sodas, and Moroccan pastries.
Driving Logistics: The A1 and A3 Toll Motorway (Autoroute)
If you choose to self-drive, the route between Rabat and Marrakech follows Morocco's premier toll motorway infrastructure:
- Motorway Route Geometry: Leaving Rabat via the A1 Autoroute, drivers head south along the Atlantic coastline toward Casablanca, bypassing the metropolitan congestion via the Casablanca Bypass Highway (Contournement de Casablanca) before merging smoothly onto the A3 Autoroute heading directly south across the fertile Chaouia plains and agricultural plateaus through Settat and Ben Guerir into Marrakech.
- Speed Limits and Automated Radars: The entire A1 and A3 corridor is a modern dual-lane divided toll motorway with a legal speed limit of 120 km/h (75 mph). Morocco's national traffic agency operates fixed automated gantry speed cameras and mobile radar units stationed beneath motorway bridges every 30 to 40 kilometers. Fines for exceeding 120 km/h start at 300 MAD.
- Toll Payment Infrastructure: Toll plazas (Péages) operate on an automated ticket system: you pull a physical paper ticket at the entry toll gate and pay cash or use an electronic Jawaz pass at the exit barrier. Total toll charges between Rabat and Marrakech amount to approximately 105 to 115 MAD (~$11 USD). Credit card terminals at toll booths are occasionally unreliable; always carry cash notes (20, 50, and 100 MAD).
- Service Plazas (Oasis Rest Areas): Modern highway service plazas (Afriquia, Shell, Total) are located at 40 to 50-kilometer intervals along the A3. These rest areas feature spotless restrooms, full-service mechanics, children's play areas, and international cafes (Paul, Starbucks, or local bakeries serving fresh grilled brochettes and espresso).
Strategic Stopovers: Casablanca and Coastal Detours
If you are self-driving or hiring a private driver, consider breaking up the 320-kilometer drive with a cultural stopover:
- Casablanca & Hassan II Mosque: Situated just 85 km south of Rabat, Casablanca offers an unmissable detour. Visit the monumental Hassan II Mosque, one of the few working Islamic mosques in Morocco open to non-Muslim visitors on guided interior tours (130 MAD entry fee). Its 210-meter minaret rises directly over the crashing waves of the Atlantic Ocean, featuring hand-carved marble, titanium gates, and an automated retractable roof.
- The Corniche and Ain Diab: Stroll along the oceanfront boardwalk of Ain Diab, enjoying fresh Atlantic seafood at historic restaurants before continuing southward on the A3 to Marrakech.
Station Transfers, Luggage Storage, and Arrival Navigation
Navigating rail arrival at the Gare de Marrakech in Gueliz requires understanding terminal logistics:
- Baggage Consignment Facilities: If you arrive in Marrakech hours before your hotel or riad check-in, the modern Marrakech train station features a secure, staffed luggage storage counter (Consigne à Bagages) located on the ground concourse. Standard rates are 20 to 30 MAD per bag per day.
- Onward Transit to the Medina: Upon exiting the train station's monumental arched entrance, you will see a rank of beige Petit Taxis. Drivers will often quote 50 to 100 MAD for the 10-minute drive to Place Jemaa el-Fna. Insist on the taximeter ("Mettez le compteur, s'il vous plaît") or negotiate a fair flat daytime fare of 20 to 30 MAD. Alternatively, walk 50 meters to the urban bus stop to board the Bus 19 or Bus 1 for just 4 MAD.
- Continuing Directly to the Desert: Many travelers arriving on the morning train from Rabat connect directly with MerzougaWay private 4x4 chauffeurs at the station curbside, heading east toward Ouarzazate and the Sahara without getting entangled in city traffic.
Comparing First Class vs Second Class Rail Experience on ONCF Al Atlas
Travelers deliberating between ticket tiers on the direct Rabat to Marrakech train line will find the price differential of 75 MAD (roughly €7 EUR) exceptionally modest relative to the added comfort:
- First Class Compartment Dynamics: First-class carriages are configured either as enclosed six-seat compartments with individual velour armchairs, curtains, and brass luggage racks, or modern open-plan saloons with wide 2+1 leather seating rows. The primary advantage is guaranteed quiet: business executives, diplomats, and international travelers dominate first class, making it ideal for working on laptops or catching uninterrupted sleep during the 3.5-hour journey.
- Second Class Social Atmosphere: Second class is configured as 2+2 open seating. While perfectly clean and air conditioned, seats are unreserved, meaning on Friday afternoons and public holidays, passengers who do not arrive 20 minutes before departure may find themselves searching multiple cars for adjacent seats or standing until the first intermediate stop in Casablanca.
- Electrical Sockets and Connectivity: First-class cars offer standard European 220V power outlets beneath every seat cluster, whereas second-class cars offer limited shared charging sockets at the carriage vestibules. Mobile cellular 4G data coverage along the A1/A3 rail corridor remains steady between 20 and 40 Mbps throughout the crossing.
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: hello@merzougaway.com
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.


