Best Morocco
Travel
Get a free quote

How far apart are Morocco's cities? Distances and driving times

By , updated

Private tour vehicle parked at a viewpoint on the High Atlas road between Marrakech and Ouarzazate

Morocco’s cities are further apart than the map suggests. Casablanca to Marrakech is 240 km and about 2.5 hours on the motorway, Casablanca to Fes is 300 km and 3 hours, and Marrakech to the Sahara dunes at Merzouga is around 560 km, which takes a full 9 hours of driving and is almost always split over two days because the road crosses the High Atlas. The table below gives road distances and the driving times our drivers actually achieve, not the optimistic figures a map app shows.

Distance and driving time table

These are road distances by the usual route, with realistic times for a private vehicle including a short stop or two. Add time in summer heat, on market days near towns, and in winter when the Tizi n’Tichka pass has snow.

RouteRoad distanceDriving timeNotes
Casablanca to Rabat90 km1 hMotorway the whole way
Casablanca to Marrakech240 km2.5 hMotorway; flat and fast
Casablanca to Fes300 km3 hMotorway via Rabat and Meknes
Rabat to Tangier250 km2.5 hMotorway along the coast
Tangier to Chefchaouen115 km2 hGood road, winding at the end
Tangier to Fes300 km4 hMotorway, then national road
Fes to Chefchaouen200 km3.5 hHills through the Rif foothills
Fes to Merzouga460 km7 hVia Ifrane, Midelt and the Ziz gorges
Marrakech to Fes (direct)530 km6 to 7 hVia Beni Mellal; little to see on the way
Marrakech to Essaouira175 km2.5 hSingle carriageway through argan country
Marrakech to Agadir250 km3 hMotorway over the Atlas foothills
Marrakech to Ouarzazate195 km3.5 to 4 hTizi n’Tichka pass, 2,260 m
Ouarzazate to Merzouga365 km5.5 hDades and Todra gorges on the way
Marrakech to Merzouga560 km9 hSplit over 2 days in practice

If you remember one thing from the table, make it this: any route that crosses the Atlas or goes to the desert takes about twice as long per kilometre as a motorway route in the north.

How far is Marrakech from Casablanca?

Marrakech is 240 km south of Casablanca and the drive takes about 2.5 hours on the A7 motorway. This is the easiest long hop in the country, which is why so many visitors land at Casablanca’s airport and head straight to Marrakech the same day. The train takes around 2 hours 40 minutes, but with transfers at each end a private car door to door usually comes out the same or quicker. Most of our tours from Casablanca stop at the Hassan II Mosque first and reach Marrakech by mid-afternoon.

Distance from Fes to Marrakech

Fes to Marrakech is about 530 km by the direct road through Beni Mellal, a 6 to 7 hour drive with a lunch stop. It is a long day on a road with no major sights, so we rarely recommend it. The train takes closer to 7 hours too, with a change at Casablanca.

The better way to connect the two cities is the long way round through the desert: Fes to Merzouga on day one, the dunes and gorges on day two, and the Atlas crossing to Marrakech on day three. That turns a dead day in a car into three of the best days in Morocco, and it is the backbone of most of our Morocco tour packages between the two imperial cities.

Marrakech to Merzouga distance and how long the drive to the Sahara takes

Marrakech to Merzouga, where the Erg Chebbi dunes begin, is roughly 560 km and about 9 hours of driving. The route climbs the Tizi n’Tichka pass at 2,260 m, drops to Ouarzazate, then follows the Draa, Dades and Todra valleys east. The mountain section alone is 3.5 to 4 hours of bends.

Nobody sensible does this in one day in each direction. The standard shape is:

  • Day 1: Marrakech over the Atlas to Ait Ben Haddou and Ouarzazate, on to the Dades Valley for the night (about 6 hours of driving, with stops).
  • Day 2: Todra Gorge, then the road to Merzouga, arriving in time for the camel ride to a desert camp at sunset (about 4.5 hours of driving).
  • Day 3: back to Marrakech in one long push through Ouarzazate (9 hours), or continue north to Fes.

That is exactly how our 3-day desert tour from Marrakech runs, and the 4-day version breaks the return journey with a night in Ouarzazate or the Draa Valley so there is no 9-hour day at all. A “Sahara day trip” from Marrakech means the Agafay desert, a stony plateau 40 minutes from the city, not the dunes.

Casablanca to Fes distance

Fes is 300 km east of Casablanca and the motorway makes it a 3-hour drive, passing Rabat and Meknes on the way. Breaking the journey at Rabat for the Kasbah of the Udayas, or at Meknes and the Roman ruins of Volubilis, turns it into a full and worthwhile day. This is day one of our 7-day tour from Casablanca.

Tangier to Chefchaouen distance

Chefchaouen is 115 km south-east of Tangier, a 2-hour drive through green hills that look nothing like the Morocco most people picture. It works well as a day trip from Tangier or, better, as the first overnight on a tour from Tangier heading south to Fes. Fes to Chefchaouen is 200 km and about 3.5 hours.

Marrakech to Essaouira distance

Essaouira is 175 km west of Marrakech, about 2.5 hours through argan groves where you may see goats in the trees. It is one of the most popular day trips from Marrakech, and a morning departure gives you five or six hours in the town before heading back.

Trains and buses as a comparison

Morocco’s rail network links Tangier, Rabat, Casablanca, Fes, Meknes and Marrakech, and it is comfortable and inexpensive. The high-speed Al Boraq runs Tangier to Casablanca in about 2 hours 10 minutes and Tangier to Rabat in about 1 hour 20 minutes. Casablanca to Marrakech on the conventional line is around 2 hours 40 minutes.

The limitation is where the trains do not go: there is no railway to Essaouira, Ouarzazate, the gorges, Merzouga or Chefchaouen. For the whole south and the desert, the choice is a bus, a shared grand taxi or a private driver. Buses stop in every town, and the scenery you came for passes the window while you cannot ask to pull over. That is the main reason our guests choose a private tour for the mountain and desert sections even if they take the train in the north.

Why realistic driving times matter when you plan

Three things make Moroccan driving times longer than a map app predicts:

  1. Mountain passes. The Tizi n’Tichka between Marrakech and Ouarzazate is a well-engineered road, but it is bends and lorries most of the way, and the pass closes briefly in heavy snow a few times each winter.
  2. Towns and checkpoints. National roads pass through the centre of every town, and routine police checkpoints on the edges of cities slow things down.
  3. Stops you want to make. Ait Ben Haddou, the Dades gorge, Todra, Volubilis: these are the point of the journey, and each one is an hour.

A good rule for your own planning: on motorways, 100 km per hour; on national roads, 60 to 70 km per hour; in the mountains and the desert valleys, 50 km per hour plus your stops. Our map of Morocco page shows how the main routes fit together.

Frequently asked questions

How far is Marrakech from Casablanca?

About 240 km. The drive is 2.5 hours on the motorway, and the train takes around 2 hours 40 minutes. It is the easiest city-to-city transfer in Morocco.

How long is the drive from Marrakech to the Sahara?

About 9 hours of driving for the 560 km to Merzouga, crossing the High Atlas on the way. In practice the journey is split over two days with a night in the Dades Valley or Ouarzazate, so the minimum round trip from Marrakech is three days.

What is the distance from Fes to Marrakech?

Around 530 km by the direct road through Beni Mellal, a 6 to 7 hour drive. Most travellers go via the desert instead, taking three days and seeing Merzouga, the gorges and the Atlas between the two cities.

Can I take a train between Moroccan cities?

Yes, in the north and centre: Tangier, Rabat, Casablanca, Meknes, Fes and Marrakech are all linked by rail, and the Al Boraq high-speed train covers Tangier to Casablanca in about 2 hours 10 minutes. There are no trains to Chefchaouen, Essaouira, Ouarzazate or the desert.

How far is Essaouira from Marrakech?

About 175 km, or 2.5 hours by road. It is a comfortable day trip, though an overnight stay gives you the harbour and the evening sea breeze.

Every itinerary we build starts with these distances, because a trip that looks fine on paper can turn into days spent only in a car. If you would like us to shape the right route for your dates, see our Morocco desert tours or contact us and we will do the sums for you.

Get a free, no-obligation quote

Tell us your dates and group size. A travel planner replies within 24 hours with a tailored itinerary and price.

Keep reading