Casablanca is the main international gateway to Morocco, and the Erg Chebbi dunes at Merzouga are the image most travellers have in mind when they book. The two are far apart: Casablanca is on the Atlantic coast, Merzouga is on the edge of the Sahara near the Algerian border, and the Atlas mountains lie in between. The good news is that the journey is one of the most beautiful in the country, as long as you give it enough time.
In short: Merzouga is roughly 600 to 670 km from Casablanca by road, depending on the route, which means nine hours or more of driving without stops. Doing it in one day is possible but exhausting. The best approach is to split it: north via Rabat and Fes, then across the Middle Atlas, or south via Marrakech and the High Atlas. Allow at least four days for a round trip that ends in Marrakech, and six to eight days if you want to see the imperial cities as well.
How far is Merzouga from Casablanca?
There is no direct motorway to the Sahara. You use the motorway for the first part of the journey, then mountain roads across the Atlas, then the long, straight roads of the south.
Casablanca → Merzouga, the direct wayAbout 600 to 670 km, nine hours or more of drivingAcross the Middle Atlas via Khenifra or Ifrane, then Midelt and the Ziz valley. Without stops, it is a very long day.
Casablanca → FesAbout 3 to 3.5 hours by motorwayVia Rabat. Fast and easy, and a natural first stop.
Fes → MerzougaAbout 460 km, around 7 hours of drivingOver the Middle Atlas via Ifrane, Azrou and Midelt, then down the Ziz valley.
Marrakech → MerzougaAbout 560 km, 8 to 9 hours with stopsOver the Tizi n'Tichka pass, via Ouarzazate and the Dades valley. Usually split over two days.
Driving times are indicative and depend on traffic, weather in the mountains and the number of stops. In winter, snow can occasionally slow the passes of the Middle and High Atlas.
Route 1: via Rabat, Fes and the Middle Atlas
This is the most logical route if you land in Casablanca and want to see the imperial cities. Day one follows the coast to Rabat, the capital, and continues to Fes. Many travellers add a stop at the Roman ruins of Volubilis or in Meknes, or a detour to Chefchaouen.
From Fes, the road climbs into the Middle Atlas: the alpine-style town of Ifrane, the cedar forests around Azrou where Barbary macaques live, and the high plateau near Midelt. Then the road drops through the Ziz gorges into a long valley of palm groves before the first dunes appear on the horizon near Erfoud and Rissani.

The advantage of this route is that every day has something to see, and the drive from Fes to Merzouga is shorter than the drive from Marrakech. Our Marrakech to Fes desert route guide describes the same road in the other direction.
Route 2: via Marrakech and the High Atlas
The second option starts with the motorway south to Marrakech, about three hours away. From there, the classic desert route crosses the High Atlas on the Tizi n'Tichka pass, stops at the UNESCO-listed Kasbah of Ait Ben Haddou, follows the Road of a Thousand Kasbahs through the Dades valley and passes the Todra Gorge before reaching Merzouga.
This route makes sense if you want to spend time in Marrakech, or if your flight home leaves from Marrakech. It is longer overall than the northern route, so it is best done over at least two days of driving each way. All the details are in our Marrakech to Merzouga route guide.
How many days do you need?
The question is not only how long it takes to reach the dunes, but how you come back. The most comfortable trips from Casablanca are loops: north through Fes to the desert, then west through the gorges and the High Atlas to Marrakech, or the other way round.
4 daysThe shortest comfortable loopCasablanca, Rabat and Fes, the Middle Atlas, a night in the desert, then a long day back across the High Atlas to Marrakech. See the 4 day tour from Casablanca to Marrakech via the Sahara.
6 to 7 daysImperial cities and the SaharaTime for Chefchaouen and a full day in Fes before the desert. See the 6 day tour from Casablanca and the 7 day Casablanca grand tour.
8 to 10 daysThe complete loopThe north, the Sahara, the gorges and Marrakech at a relaxed pace. See the 8 day tour from Casablanca and the 10 day grand loop with two Sahara nights.
A three-day return trip from Casablanca to Merzouga is technically possible, but it means two very long driving days for one night in the dunes. We usually advise against it unless time is really short.

Car, bus, plane or private tour?
Self-drive. The roads are generally good, but the distances are long, the mountain sections are slow and the last part to the camps is on sand. It suits experienced drivers with plenty of time.
Bus and train. Trains run from Casablanca to Fes, and long-distance buses connect Fes with Merzouga. It is the cheapest option but also the slowest, and it does not include the camel ride or the camp.
Plane. Errachidia, about two hours' drive from Merzouga, has a small airport with flights from Casablanca. Check current schedules, as services are limited, and you still need a transfer to the dunes.
Private tour. A driver-guide picks you up in Casablanca, plans the stops, handles the mountain roads and the desert tracks, and the camel ride and the night in a Berber camp are part of the trip. It is the most comfortable way to cover the distance, and you can adapt the pace day by day. Read private vs group desert tours and our guide to hiring a private driver in Morocco.
The best stops between Casablanca and Merzouga
- Hassan II Mosque, Casablanca. One of the few mosques in Morocco open to non-Muslim visitors on guided tours, built above the ocean.
- Rabat. The Kasbah of the Udayas and the Hassan Tower, an easy stop on the motorway.
- Volubilis and Meknes. Roman mosaics and the imperial city of Moulay Ismail, between Rabat and Fes.
- Fes el-Bali. The great medieval medina; see our Fes medina guide.
- Ifrane and the Azrou cedars. Fresh mountain air and Barbary macaques.
- The Ziz valley. A long ribbon of palm groves and earthen villages below the road.
- Rissani. The old caravan town near Merzouga, with a lively traditional market.
When to go
The best months for the drive and the desert are spring (March to May) and autumn (September to November). In winter, days are sunny but desert nights are cold and snow can occasionally close the Middle Atlas roads for a few hours. In summer, the Sahara is very hot in the afternoon, so camel rides are timed for sunset and sunrise. See the best time to visit Morocco and our Merzouga weather guide.
“The road from Casablanca to the dunes crosses half of Morocco: the ocean, the imperial cities, the cedars, the palm groves. Give it time and it becomes part of the journey, not just the way to get there.”
Desert tours from Casablanca
All our tours from Casablanca are listed on the tours from Casablanca page, and all our desert routes on the Morocco desert tours page. Every itinerary can be adapted: a night more in Fes, a detour to Chefchaouen, or two nights in the dunes instead of one.
Landing in Casablanca and dreaming of the dunes? Send us your dates or message us on WhatsApp, and we will suggest the route that fits your time, with a free, no-obligation quote.






