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.
Marrakech to Chefchaouen at a Glance
| Detail | Info |
|---|---|
| Road distance (direct) | About 560 to 580 km |
| Driving time | About 7 to 8 hours without long stops |
| Fastest option | Fly to Tangier (about 1h15), then drive 2.5 hours |
| Cheapest option | Train to Rabat or Tangier, then CTM bus |
| Most comfortable | Private driver with stops in Casablanca or Rabat |
| Most scenic | Multi-day tour via the Sahara and Fes |
| Nearest airports to Chefchaouen | Tangier and Tetouan |
| Best seasons | Spring and autumn |
Red City vs Blue City: Two Faces of Morocco
| Marrakech | Chefchaouen | |
|---|---|---|
| Color | Red and ochre walls | Blue and white walls |
| Region | The south, near the High Atlas | The north, in the Rif Mountains |
| Size | A big, busy city | A small, quiet town |
| Atmosphere | Lively souks, squares and nightlife | Calm alleys, mountain air, slow pace |
| Climate | Hot summers, mild winters | Cooler summers, rainy winters |
| Best for | Palaces, gardens, food, energy | Photography, 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.
Option 1: Private Driver or Self-Drive (Direct Route)
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.
| Leg | Distance | Approximate time |
|---|---|---|
| Marrakech – Casablanca | About 240 km | About 2.5 to 3 hours |
| Casablanca – Rabat | About 90 km | About 1 hour |
| Rabat – Kenitra | About 40 km | About 40 minutes |
| Kenitra – Ouezzane | About 120 km | About 1.5 to 2 hours |
| Ouezzane – Chefchaouen | About 60 km | About 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.
Option 2: Fly From Marrakech to Tangier
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.
Option 3: Train and Bus
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.
Option 4: Bus All the Way
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.
Option 5: The Scenic Route Through the Sahara and Fes
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.
| Day | Route | Highlights |
|---|---|---|
| Day 1 | Marrakech – Ait Ben Haddou – Dades Valley | Tizi n’Tichka pass, kasbahs, Rose Valley |
| Day 2 | Dades – Todra Gorge – Merzouga | Camel ride, night in a desert camp |
| Day 3 | Merzouga – Ziz Valley – Ifrane – Fes | Palm groves, cedar forest, Barbary macaques |
| Day 4 | Fes | The oldest medina in the world |
| Day 5 | Fes – Chefchaouen | Arrive 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.
Alternative: The Middle Atlas Route via Ouzoud and Ifrane
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.
| Day | Route |
|---|---|
| Day 1 | Marrakech – Ouzoud Waterfalls – Beni Mellal |
| Day 2 | Beni Mellal – Khenifra – Azrou – Ifrane – Fes |
| Day 3 | Fes – 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.
Comparison: Which Option Is Best?
| Option | Total time | Comfort | Cost | Best for |
|---|---|---|---|---|
| Private driver (direct) | 7 to 8 hours or 2 days | Very high | Medium | Families, couples, comfort |
| Flight to Tangier | 5 to 6 hours | High | Low to medium | Short on time |
| Train + bus | 8 to 10 hours | Medium | Low | Independent travelers |
| Bus | 9 to 11 hours | Low | Very low | Tight budgets |
| Via Sahara and Fes | 4 to 6 days | Very high | Medium to high | Seeing the whole country |
Best Stops on the Direct Route
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 in Brief: A Little History
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.
Arriving in Chefchaouen: First Steps
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.
What to Do When You Arrive in Chefchaouen
- 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.
A Perfect Day in Chefchaouen
| Time | Plan |
|---|---|
| 8:00 | Early walk in the empty blue alleys, the best moment for photos |
| 10:00 | Breakfast on a rooftop terrace |
| 11:00 | Kasbah and its garden museum |
| 13:00 | Lunch in Outa el Hammam square: try goat cheese and local dishes |
| 15:00 | Ras El Maa spring and shopping for wool blankets and crafts |
| 17:30 | Walk up to the Spanish Mosque for sunset |
| 20:00 | Dinner and an evening stroll in the illuminated medina |
Day Trips From Chefchaouen
- 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.
Sample Itineraries Including Marrakech and Chefchaouen
7 Days: Marrakech, Sahara, Fes and Chefchaouen
| Day | Plan |
|---|---|
| Day 1 | Marrakech |
| Day 2 | Marrakech – Ait Ben Haddou – Dades Valley |
| Day 3 | Dades – Todra Gorge – Merzouga, desert camp |
| Day 4 | Merzouga – Ifrane – Fes |
| Day 5 | Fes medina |
| Day 6 | Fes – Chefchaouen |
| Day 7 | Chefchaouen – Tangier, departure or ferry to Spain |
10 Days: The Grand Loop
| Days | Plan |
|---|---|
| Days 1–2 | Marrakech |
| Days 3–5 | High Atlas, Dades, Sahara |
| Days 6–7 | Fes and Meknes |
| Days 8–9 | Chefchaouen |
| Day 10 | Rabat or Casablanca, departure |
Find more ideas in our travel itinerary planner and our 7 Days Morocco Tour from Marrakech.
How Much Does It Cost?
| Option | Approximate cost |
|---|---|
| Low-cost flight Marrakech – Tangier | Can be very cheap on sale; usually higher close to the date |
| Train Marrakech – Tangier | Depends on class; first class is affordable by European standards |
| CTM bus via Rabat | The cheapest option |
| Grand taxi Tangier – Chefchaouen | Shared seat or private car |
| Private driver | Depends 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.
Best Time to Travel
| Season | Marrakech | Chefchaouen |
|---|---|---|
| Spring | Warm and pleasant | Green, flowers, ideal for hiking |
| Summer | Very hot | Warm, busy with visitors |
| Autumn | Warm and pleasant | Mild, beautiful light |
| Winter | Mild days, cold nights | Cool and rainy, sometimes snow on the peaks |
Spring and autumn suit both cities. Read our guide to the best time to visit Morocco.
Where to Stay in Chefchaouen
- 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.
Practical Tips for the Journey
- 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.
10 Tips for Traveling From Marrakech to Chefchaouen
- Do not try to do it as a day trip.
- Fly to Tangier if you are short on time.
- Break the drive in Rabat on the direct route.
- Consider the Sahara route if you have five days or more.
- Arrive before dark in the mountains.
- Book CTM buses early in high season.
- Stay at least one night in Chefchaouen.
- Explore early in the morning for empty streets.
- Pack layers for the cooler mountain climate.
- Continue to Tangier if you plan to cross to Spain.
Traveling With Children or Seniors
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.
Is Chefchaouen Worth the Long Journey From Marrakech?
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.
Shopping in Chefchaouen
- 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.
What to Pack
- 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.
Common Mistakes
| Mistake | Better plan |
|---|---|
| Trying to do Marrakech – Chefchaouen – Marrakech in two days | Plan a one-way route or more days |
| Driving the Rif roads at night | Arrive before dark |
| Expecting a train to Chefchaouen | Combine train and bus or taxi |
| Booking CTM on the same day in high season | Book in advance |
| Only one hour in Chefchaouen | Stay at least one night |
| Forgetting layers | Nights in the Rif are cool, even in spring |
Quick Cheat Sheet: Marrakech to Chefchaouen
- 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
Frequently Asked Questions
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.
Final Thoughts
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.
Explore our Morocco trips:
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.
Contact us

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.
Plan Your Trip
Click any destination to see more:
Marrakech Desert Tours
- 2 Days Desert Tour from Marrakech
- 3 Days Marrakech to Merzouga
- 3 Days Marrakech to Fes
- 4 Days Marrakech to Merzouga
- 4 Days Marrakech to Fes
- 5 Days Marrakech to Merzouga
- 5 Days Morocco Tour from Marrakech
- 6 Days Morocco Tour from Marrakech
- 7 Days Morocco Tour from Marrakech
- 8 Days Morocco Tour from Marrakech
- 8 Days with Imperial Cities
- 9 Days Morocco Tour from Marrakech
- 10 Days Morocco Tour from Marrakech
- 12 Days Morocco Tour from Marrakech
- 14 Days Morocco Tour from Marrakech