Skip to main content
MoroccoTravelBase
Distances Between Moroccan Cities: km and Travel Times by Car, Train and Bus

infos pratiques

Distances Between Moroccan Cities: km and Travel Times by Car, Train and Bus

La rédaction MoroccoTravelBase 6 min read Updated 2026-11-20

Distances Between Moroccan Cities: The Travel-Time Chart

Morocco looks compact on a map, but distances are paid in hours, especially once you cross the Atlas or head for the desert. Here are real distances and travel times between the main cities, by car and public transport, so you can build a realistic itinerary.

The most common journeys: Casablanca to Marrakech 240 km (2h30-3h by car, 2h40-3h20 by train), Marrakech to Agadir 250 km (about 3h on the motorway), Marrakech to Essaouira 170-190 km (2h30-3h), Casablanca to Tangier 340 km (2h10 on the Al Boraq high-speed train), Marrakech to Fes 530 km (6-7h by car or by train with a change), Fes to Chefchaouen 200 km (3h30-4h) and Marrakech to Merzouga 560 km (9-10h of driving, best done as a 3-day tour). The train is fastest on the Tangier-Rabat-Casablanca-Marrakech line and to Fes; elsewhere you need a car, a bus (CTM, Supratours) or a transfer. Times exclude stops and traffic.

Distance and Travel-Time Chart

RouteRoad distanceCarPublic transport
Casablanca ↔ Marrakech240 km2 h 30 – 3 hONCF train: 2 h 40 – 3 h 20
Casablanca ↔ Rabat90 km1 hONCF train: 50 min – 1 h
Casablanca ↔ Tangier340 km3 h 30Al Boraq high-speed train: 2 h 10
Rabat ↔ Tangier270 km2 h 30Al Boraq high-speed train: 1 h 30
Rabat ↔ Fes200 km2 h – 2 h 30ONCF train: 2 h 40
Fes ↔ Meknes60 km1 hONCF train: 40 min
Marrakech ↔ Fes530 km6 h – 7 hTrain (change at Casablanca): 6 h – 7 h 30
Marrakech ↔ Agadir250 km3 hCTM / Supratours bus: 3 h 30
Marrakech ↔ Essaouira170-190 km2 h 30 – 3 hCTM / Supratours bus: 3 h
Agadir ↔ Essaouira170-180 km2 h 30 – 3 hCTM / Supratours bus: 3 h
Agadir ↔ Taghazout20 km25 – 30 minTaxi or local bus: 30 min
Marrakech ↔ Ouarzazate200 km4 hCTM bus or tour: 4 h – 5 h
Ouarzazate ↔ Ait Ben Haddou30 km30 minTaxi or local bus: 30 – 40 min
Marrakech ↔ Merzouga560 km9 h – 10 h3-day organised tour
Fes ↔ Merzouga470 km7 h – 8 h3-day organised tour
Fes ↔ Chefchaouen200 km3 h 30 – 4 hCTM / Supratours bus: 4 h
Tangier ↔ Chefchaouen100-115 km2 h – 2 h 30CTM / Supratours bus: 2 h 30 – 3 h
Tangier ↔ Asilah50 km45 min – 1 hTrain or bus: 40 min
Casablanca ↔ El Jadida100 km1 h 15Train or bus: 1 h 30

Road distances and typical times, excluding stops, traffic and checkpoints. Train and bus timetables change: check before you travel.

Driving in Morocco: What Slows You Down

  • Motorways: Tangier-Rabat-Casablanca-Marrakech-Agadir and Rabat-Fes are fast toll roads; this is where the chart's times hold.
  • Mountains: the Tizi n'Tichka pass (Marrakech-Ouarzazate) and the Rif roads (Chefchaouen) are slow and winding, so allow extra time.
  • Desert: beyond Ouarzazate distances grow and fuel stations thin out.
  • At night: avoid driving off the motorway after dark (pedestrians, donkeys, vehicles without lights).

Train, Bus or Transfer?

The ONCF network covers Tangier, Rabat, Casablanca, Marrakech, Fes, Meknes and Oujda, with the Al Boraq high-speed train between Tangier and Casablanca: details and fares in our guide to trains in Morocco (ONCF and Al Boraq) and our Morocco by train itinerary. For Essaouira, Agadir, Chefchaouen and Ouarzazate, CTM and Supratours buses are reliable and cheap. For every option, see getting around Morocco and our Morocco car rental guide.

Journeys Not to Do in One Day

Three links often trap over-tight itineraries: Marrakech to Merzouga (560 km), best as a 3-day desert tour from Marrakech with a night in the dunes; Marrakech to Chefchaouen, over 600 km, to split at Fes or Rabat; and Merzouga to Chefchaouen, also over 600 km. For a first one-week trip, pick one axis (Marrakech + desert, or Fes + the north): see our 7-day Morocco itinerary.

Book your arrival transferYou will be redirected to our partner GetTransfer.

To avoid changes with luggage, a private transfer or a tour with hotel pick-up often saves half a day.

See day trips from Marrakech· GetYourGuideFree cancellation up to 24h before on most activities · the best time slots sell out first in high seasonReserve now, pay later on many activities

Book trains or buses online: Omio compares ONCF trains and CTM coaches in one search, with e-tickets.

Compare trains and buses on Omio· Omio

Compare car rentals

DiscoverCars search: dozens of rental companies in Morocco, free cancellation on most offers.

FAQ: Distances in Morocco

How far is Casablanca from Marrakech?

About 240 km on the motorway, or 2h30-3h by car. The ONCF train takes 2h40-3h20.

How long is the drive from Marrakech to Agadir?

About 3 hours for 250 km on the motorway, a little longer by bus.

How far is Essaouira from Agadir?

About 170-180 km along the Atlantic coast, or 2h30-3h by road.

How many km from Marrakech to Fes?

About 530 km: 6-7 hours by car on the motorway, or 6h-7h30 by train with a change at Casablanca.

Can you go from Marrakech to the Merzouga desert in one day?

It's not advisable: 560 km and 9-10 hours of driving. The usual option is a 3-day tour with a night in a desert camp.

What is the fastest way to travel around Morocco?

The Al Boraq high-speed train between Tangier and Casablanca (2h10), then ONCF trains on the Casablanca-Marrakech line and to Fes. For long distances off the rail network, domestic flights via Casablanca are an option.

Top-rated hotels by city

Photos, guest scores, indicative prices and a direct Booking.com link.

Plan the journey

Compare before you book

Check stays, flights and cars separately: prices, availability, bags, deposit, insurance and terms are set by the partner.

The most-booked experiences in Morocco

Most booked by our readers, then the best rated (73,433 GetYourGuide reviews in total). Free cancellation up to 24h before on most.

See all activities
All promo codes

Book activities in Morocco

Tours, guided visits and experiences — free cancellation up to 24h before and secure payment.

This module shows GetYourGuide activities and may set third-party cookies.

Bookings handled by GetYourGuide. If you book through this module we may earn a commission, at no extra cost to you.

Things to do in Morocco

Free 24h cancellation on most

Check dates