Travel From Marrakech to Chefchaouen: From the Red City to the Blue City

Marrakech and Chefchaouen are two of the most photographed places in Morocco, but they could hardly be more different. Marrakech is the red city of the south, with palm trees, busy souks and views of the High Atlas. Chefchaouen is the Blue City of the north, a quiet mountain town in the Rif where every wall seems painted in shades of sky and sea. Many travelers want to see both on one trip, and the question we hear most is: what is the best way to get from one to the other?

You can travel from Marrakech to Chefchaouen in five ways: driving or with a private driver, flying to Tangier, the train plus bus combination, buses, and the scenic multi-day route through the Sahara and Fes. Below are the distances, travel times, costs and the tips our drivers use on this route every week.

DetailInfo
Road distance (direct)About 560 to 580 km
Driving timeAbout 7 to 8 hours without long stops
Fastest optionFly to Tangier (about 1h15), then drive 2.5 hours
Cheapest optionTrain to Rabat or Tangier, then CTM bus
Most comfortablePrivate driver with stops in Casablanca or Rabat
Most scenicMulti-day tour via the Sahara and Fes
Nearest airports to ChefchaouenTangier and Tetouan
Best seasonsSpring and autumn
MarrakechChefchaouen
ColorRed and ochre wallsBlue and white walls
RegionThe south, near the High AtlasThe north, in the Rif Mountains
SizeA big, busy cityA small, quiet town
AtmosphereLively souks, squares and nightlifeCalm alleys, mountain air, slow pace
ClimateHot summers, mild wintersCooler summers, rainy winters
Best forPalaces, gardens, food, energyPhotography, relaxing, hiking

If you visit both, you see two very different sides of Morocco: the energy of the imperial south and the peaceful charm of the mountainous north. Read our guides to Jardin Majorelle and the Bahia Palace for your time in Marrakech.

The direct road follows modern highways north: Marrakech – Casablanca – Rabat – Kenitra, then smaller national roads through Ouezzane into the Rif Mountains. With a private driver, you can leave in the morning and arrive in Chefchaouen in the late afternoon, with stops for coffee, lunch and photos. The highway part is fast and comfortable, while the last hours through the green hills and olive groves of the Rif are the best part of the drive.

LegDistanceApproximate time
Marrakech – CasablancaAbout 240 kmAbout 2.5 to 3 hours
Casablanca – RabatAbout 90 kmAbout 1 hour
Rabat – KenitraAbout 40 kmAbout 40 minutes
Kenitra – OuezzaneAbout 120 kmAbout 1.5 to 2 hours
Ouezzane – ChefchaouenAbout 60 kmAbout 1 to 1.5 hours

Make It a Two-Day Trip

Seven or eight hours is a long day. We often recommend breaking the journey: visit the Hassan II Mosque in Casablanca and spend the night in Rabat, the calm capital with the Kasbah of the Udayas and the Hassan Tower. The next morning, continue to Chefchaouen and arrive in time for lunch and an afternoon in the blue medina.

Tips for Self-Drivers

  • Highways are tolled; keep some cash or a card for the toll booths.
  • The last part through the Rif is winding; drive slowly and avoid driving at night.
  • Park outside the medina in Chefchaouen; cars cannot enter the narrow streets of the old town.
  • Watch for police speed checks on national roads, and keep your documents ready at checkpoints.

If you want to save time, fly. There are direct flights between Marrakech Menara and Tangier Ibn Battouta airports with airlines such as Ryanair and Air Arabia, taking about 1 hour 15 minutes. Some flights with Royal Air Maroc connect through Casablanca and take longer. From Tangier airport, Chefchaouen is about 2.5 hours by road. Flying also gives you the chance to spend a few hours in Tangier before heading to the mountains.

  • Total time: about 5 to 6 hours including airport time and the drive.
  • From Tangier to Chefchaouen: private transfer, grand taxi or CTM bus from the city (about 2.5 hours).
  • Tip: book early; low-cost fares can be very cheap, but schedules change by season.

Tetouan airport, about 1.5 hours from Chefchaouen, is another option when flights are available. Read our guide where is Chefchaouen.

There is no train station in Chefchaouen, but you can take the train most of the way:

  • Route A (via Tangier): train from Marrakech to Casablanca, then Al Boraq high-speed train to Tangier (about 5 to 6 hours in total with the change), then a bus or taxi to Chefchaouen (about 2.5 hours).
  • Route B (via Rabat): train from Marrakech to Rabat (about 3.5 to 4 hours), then a CTM bus from Rabat to Chefchaouen (about 5 hours).
  • Route C (via Fes): train from Marrakech to Fes (about 7 hours), then a CTM bus from Fes to Chefchaouen (about 4 hours).

Moroccan trains are comfortable, punctual and affordable. First class is worth it on long journeys, with more space and reserved seats. Al Boraq, the high-speed train between Casablanca and Tangier, is one of the fastest in Africa. Read our guide to traveling by train in Morocco. Book CTM buses in advance, especially on weekends and holidays.

Buses are the cheapest way to travel, but there is usually no direct bus from Marrakech to Chefchaouen. Most travelers take a CTM bus to Rabat and change there, for a total of about 9 to 11 hours. It is a long day, best for travelers on a tight budget. Bring snacks, water and something to read, and keep your bag close to you at bus stations. Buses are generally safe and air-conditioned, but schedules can change, so check the latest times with CTM before you travel.

If you have several days, take this route. Instead of driving north on the highway, you travel east over the High Atlas to the Sahara, then north through the Middle Atlas to Fes, and finally to Chefchaouen. On the way you pass snowy mountains, kasbahs, gorges, dunes, cedar forests and the medina of Fes before reaching the blue town. We recommend it to first-time visitors with five days or more.

DayRouteHighlights
Day 1Marrakech – Ait Ben Haddou – Dades ValleyTizi n’Tichka pass, kasbahs, Rose Valley
Day 2Dades – Todra Gorge – MerzougaCamel ride, night in a desert camp
Day 3Merzouga – Ziz Valley – Ifrane – FesPalm groves, cedar forest, Barbary macaques
Day 4FesThe oldest medina in the world
Day 5Fes – ChefchaouenArrive in the Blue City

Our 3 Days Tour from Marrakech to Fes and 4 Days Tour from Marrakech to Fes cover the first part, and from Fes you can continue to Chefchaouen. See also our day trip to Chefchaouen from Fes.

Few travelers know the other road north: the inland road through the Middle Atlas. Leave Marrakech toward the Ouzoud Waterfalls, the highest falls in Morocco, then continue through Beni Mellal and Khenifra, small Amazigh towns surrounded by mountains and olive groves. The road then climbs to Azrou and Ifrane, with their cedar forests and Barbary macaques, before reaching Fes. From Fes, Chefchaouen is less than four hours away.

DayRoute
Day 1Marrakech – Ouzoud Waterfalls – Beni Mellal
Day 2Beni Mellal – Khenifra – Azrou – Ifrane – Fes
Day 3Fes – Chefchaouen

Take this route if you have already seen the desert, or if you want green landscapes, waterfalls and mountains instead of highways. It also passes through areas where few tourists go, giving you a more authentic look at rural Moroccan life, weekly markets and Amazigh villages. Read our guides to the Ouzoud Waterfalls and Ifrane Morocco.

OptionTotal timeComfortCostBest for
Private driver (direct)7 to 8 hours or 2 daysVery highMediumFamilies, couples, comfort
Flight to Tangier5 to 6 hoursHighLow to mediumShort on time
Train + bus8 to 10 hoursMediumLowIndependent travelers
Bus9 to 11 hoursLowVery lowTight budgets
Via Sahara and Fes4 to 6 daysVery highMedium to highSeeing the whole country

Casablanca

Stop to visit the magnificent and impressive Hassan II Mosque, built partly over the Atlantic Ocean and one of the few mosques in Morocco open to non-Muslims on guided tours. Read our guide to the weather in Casablanca.

Rabat

Morocco’s capital is clean, calm and full of history: the Kasbah of the Udayas with its blue-and-white alleys, the Hassan Tower and the Mausoleum of Mohammed V. It is also a good place to spend the night, with good restaurants along the river and the ocean.

Ouezzane

A small holy town at the foot of the Rif, known for its zawiya (Sufi lodge) and its woolen djellabas. A good place for a short break before the mountain road. From here, the landscape becomes greener and hillier as you enter the Rif, and the first villages with blue doors begin to appear.

Chefchaouen was founded in 1471 by Moulay Ali ben Rachid as a fortress to defend the region against Portuguese attacks from the coast. Soon after, Muslim and Jewish refugees from Andalusia settled here, bringing their architecture, crafts and traditions. That is why the medina, with its whitewashed houses, tiled roofs and small squares, feels so Andalusian.

For centuries, the town remained isolated in the mountains. During the 20th century it was part of the Spanish Protectorate in northern Morocco, until independence in 1956. The famous blue color came later and has many explanations, from Jewish tradition to keeping houses cool and keeping mosquitoes away. Read our full guide why is Chefchaouen blue.

When you arrive, cars and buses stop outside the old medina. The CTM bus station is a short taxi ride or a 15 to 20 minute uphill walk from the center. Private drivers and taxis usually drop you near one of the medina gates, such as Bab el Ain, from where you continue on foot.

If your guesthouse is inside the medina, ask the owner to meet you at the gate: the alleys look alike, and it is easy to get lost the first time. Porters with small carts can help with heavy luggage for a small tip, which is very useful on the steep and narrow streets, especially if you arrive tired after a long day on the road from Marrakech. Once you have dropped your bags, head to Outa el Hammam square for a mint tea and your first view of the kasbah and the mountains above the blue town. Then simply start walking: in Chefchaouen, getting a little lost is part of the fun.

  • Wander the blue medina and get lost in its alleys.
  • Relax in Outa el Hammam square with a mint tea facing the kasbah.
  • Visit the kasbah and its garden museum.
  • Walk to the Spanish Mosque for sunset over the town.
  • See Ras El Maa, the spring and washing place at the edge of the medina.
  • Hike to Akchour and the God’s Bridge natural arch in nearby Talassemtane National Park.

Read our guides to the Blue City, why Chefchaouen is blue and things to do in Chefchaouen at night.

TimePlan
8:00Early walk in the empty blue alleys, the best moment for photos
10:00Breakfast on a rooftop terrace
11:00Kasbah and its garden museum
13:00Lunch in Outa el Hammam square: try goat cheese and local dishes
15:00Ras El Maa spring and shopping for wool blankets and crafts
17:30Walk up to the Spanish Mosque for sunset
20:00Dinner and an evening stroll in the illuminated medina
  • Akchour Waterfalls and God’s Bridge: a hike through the river gorges of Talassemtane National Park, about 45 minutes away by car.
  • Tetouan: a UNESCO-listed medina with strong Andalusian heritage, about 1 hour away.
  • Oued Laou: a quiet Mediterranean beach town, busy in July and August.
  • Rif villages: traditional mountain villages, olive groves and local markets.

7 Days: Marrakech, Sahara, Fes and Chefchaouen

DayPlan
Day 1Marrakech
Day 2Marrakech – Ait Ben Haddou – Dades Valley
Day 3Dades – Todra Gorge – Merzouga, desert camp
Day 4Merzouga – Ifrane – Fes
Day 5Fes medina
Day 6Fes – Chefchaouen
Day 7Chefchaouen – Tangier, departure or ferry to Spain

10 Days: The Grand Loop

DaysPlan
Days 1–2Marrakech
Days 3–5High Atlas, Dades, Sahara
Days 6–7Fes and Meknes
Days 8–9Chefchaouen
Day 10Rabat or Casablanca, departure

Find more ideas in our travel itinerary planner and our 7 Days Morocco Tour from Marrakech.

OptionApproximate cost
Low-cost flight Marrakech – TangierCan be very cheap on sale; usually higher close to the date
Train Marrakech – TangierDepends on class; first class is affordable by European standards
CTM bus via RabatThe cheapest option
Grand taxi Tangier – ChefchaouenShared seat or private car
Private driverDepends on vehicle, group size and number of days

Prices change often, especially for flights and in high season, so always check before booking. For groups of two to four people, a private driver can be surprisingly good value, especially when you include the convenience of door-to-door travel.

SeasonMarrakechChefchaouen
SpringWarm and pleasantGreen, flowers, ideal for hiking
SummerVery hotWarm, busy with visitors
AutumnWarm and pleasantMild, beautiful light
WinterMild days, cold nightsCool and rainy, sometimes snow on the peaks

Spring and autumn suit both cities. Read our guide to the best time to visit Morocco.

  • Inside the medina: traditional guesthouses with rooftop views; you will carry your luggage up some stairs.
  • Near the kasbah and Outa el Hammam: the heart of town, lively in the evening.
  • Near Ras El Maa: quieter, close to the spring and the path to the Spanish Mosque.
  • Outside the medina: hotels with parking, easier for self-drivers and travelers with reduced mobility.
  • Start early to arrive in the Rif before dark.
  • Carry cash for tolls, taxis and small cafés. Read our guide to the Moroccan dirham.
  • Bring a light jacket: Chefchaouen is cooler than Marrakech.
  • Wear good shoes: the medina is full of stairs and slopes.
  • Respect privacy when photographing locals and their doors.
  • Buy a local SIM for maps; read our guide to the phone code of Morocco.
  1. Do not try to do it as a day trip.
  2. Fly to Tangier if you are short on time.
  3. Break the drive in Rabat on the direct route.
  4. Consider the Sahara route if you have five days or more.
  5. Arrive before dark in the mountains.
  6. Book CTM buses early in high season.
  7. Stay at least one night in Chefchaouen.
  8. Explore early in the morning for empty streets.
  9. Pack layers for the cooler mountain climate.
  10. Continue to Tangier if you plan to cross to Spain.

For families and older travelers, the best options are the flight to Tangier with a private transfer, or a private driver with an overnight stop in Rabat. Chefchaouen’s medina has many steps and slopes, so choose accommodation close to a gate or with car access. See our Morocco family tours and Morocco tours for seniors.

Yes, if you have enough time. Chefchaouen is far from Marrakech, but it offers something you will not find anywhere else in Morocco: a small, peaceful mountain town painted entirely in blue, with friendly people, fresh air and good hiking trails nearby. After the noise and heat of Marrakech, it feels like a calm retreat.

If you only have four or five days in total, it may be better to focus on Marrakech, the Atlas and the Sahara, and keep Chefchaouen for another trip. With a week or more, combining both cities, ideally with the desert and Fes in between, shows you most of the country.

  • Wool blankets and djellabas woven in the Rif.
  • Local goat cheese, sold fresh in the markets.
  • Blue pigments and colorful souvenirs.
  • Leather bags and babouches.
  • Handmade baskets and hats from the Rif villages.

Prices in Chefchaouen are often more relaxed than in Marrakech, and sellers are usually less insistent, which makes shopping a calm and pleasant experience. Bargaining is still normal, but always with a smile.

  • Light clothes for Marrakech and a warm layer for Chefchaouen evenings
  • A rain jacket from November to March in the Rif
  • Comfortable walking shoes with good grip for steep alleys
  • Sunscreen, sunglasses and a hat
  • A power bank for long travel days
  • Snacks and water for the road
  • A small bag for a night in the desert if you take the Sahara route

Because the climate changes so much between the south and the north, packing layers is the secret to staying comfortable during the whole journey, whatever the season.

MistakeBetter plan
Trying to do Marrakech – Chefchaouen – Marrakech in two daysPlan a one-way route or more days
Driving the Rif roads at nightArrive before dark
Expecting a train to ChefchaouenCombine train and bus or taxi
Booking CTM on the same day in high seasonBook in advance
Only one hour in ChefchaouenStay at least one night
Forgetting layersNights in the Rif are cool, even in spring
  • Distance: about 560 to 580 km
  • Driving: about 7 to 8 hours
  • Fastest: fly to Tangier + 2.5 hours by road
  • Budget: train + CTM bus
  • Best stopover: Rabat
  • Most scenic: via the Sahara and Fes
  • Stay at least one night in Chefchaouen

How far is Chefchaouen from Marrakech?

About 560 to 580 km by road on the direct route.

How long does it take to drive from Marrakech to Chefchaouen?

About 7 to 8 hours without long stops.

Is there a direct bus from Marrakech to Chefchaouen?

Usually not. Most travelers change in Rabat or travel via Tangier or Fes.

Is there a train to Chefchaouen?

No. Take the train to Tangier, Rabat or Fes, then a bus or taxi.

Can I fly from Marrakech to Chefchaouen?

There is no airport in Chefchaouen. Fly to Tangier, then drive about 2.5 hours.

What is the best stop between Marrakech and Chefchaouen?

Rabat, the capital, is the ideal overnight stop on the direct route.

Can I visit Chefchaouen as a day trip from Marrakech?

No, it is too far. Plan at least one night.

What is the most scenic way to get there?

The multi-day route via the Sahara and Fes.

Is it better to go to Chefchaouen from Marrakech or from Fes?

Fes is much closer (about 3.5 to 4 hours). Many travelers visit Marrakech, cross the Sahara to Fes, then continue to Chefchaouen.

Can I combine Chefchaouen with a ferry to Spain?

Yes. Chefchaouen is about 2.5 hours from Tangier, where ferries leave for Tarifa and Algeciras.

Traveling from Marrakech to Chefchaouen takes you from the red city of the south to the blue pearl of the north. Fly to Tangier if you are short on time, take the train and bus if you travel on a budget, or follow the scenic route through the Sahara and Fes if you want to see the whole country. However you go, give yourself time to enjoy the Blue City slowly: the alleys are quietest early in the morning, and the walls change color in the evening light. And if you have the chance, combine the journey with the desert and Fes, because that road crosses the High Atlas, the Sahara and the Middle Atlas before it reaches the Rif.

Planning this journey? Contact us and we will organize your private transfer or multi-day tour from Marrakech to Chefchaouen.


Tours from Marrakech: Start in the red city and travel north on a private tour, through the Sahara and Fes or along the Atlantic coast, all the way to the Blue City of Chefchaouen.

Morocco Desert Tours: Why choose between the desert and the Blue City? Our routes from Marrakech cross the Sahara at Merzouga before heading north to Fes and Chefchaouen.

Tours from Fes: Fes is the gateway to Chefchaouen. Combine the oldest medina in the world with the blue alleys of the Rif and the dunes of the Sahara.

Tours from Ouarzazate: Begin with the kasbahs and gorges of the south, then travel through the desert and the Middle Atlas to the north of Morocco.

Tours from Tangier: Flying from Marrakech to Tangier? Our Tangier tours take you to Chefchaouen, Fes and back south to the Sahara.

Tours from Casablanca: On the way north, stop in Casablanca for the Hassan II Mosque and continue through Rabat to the Blue City.

Name
Lahcen Saadi, a professional local guide from the Exploring Morocco Trips team, in traditional attire in front of a 4x4 in the Sahara dunes

Your Local Experts

Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.

Scroll to Top