It all began with a photo. The winding and sloping streets seemed made with photographers in mind, splashed in every cool shade of aqua and royal and sky every day of the year. If this colorful city has been on your radar, we pulled together some must-know history and a few recommendations of things to do in Chefchaouen, Morocco.
Nestled in the Rif Mountains, Chefchaouen was founded in 1471 by Sherif Moulay Ali Ben Rachid. The city was established as a fortress (Kasbah) to defend against the advancing Portuguese forces, who were expanding their influence along Morocco’s Atlantic coast. Moulay Ali Ben Rachid welcomed Muslim and Jewish refugees from Al-Andalus (modern-day Spain), particularly after the fall of Granada in 1492.
Historical Background
Now one of the prettiest towns in Morocco, Chefchaouen was founded in 1471 as a point of defense against the invading Portuguese. During the late 15th and early 16th centuries, Portugal sought to extend its reach into Morocco, already controlling key coastal cities like Ceuta and Tangier. The city’s founder, Moulay Ali Ben Rachid, along with the local population, successfully repelled the Portuguese, ensuring that Chefchaouen remained an independent stronghold.
Just two decades later, the city expanded with the arrival of Muslim and Jewish refugees fleeing forced conversion to Christianity in Granada, Spain. One story says that the immigrant Sephardic Jewish community brought with them a tradition of painting buildings blue because it reminded them of the sky and the presence of God. A different version of the story attributes the blue to the Jewish community, but this time to Jews who arrived in Morocco fleeing Hitler’s incursion through Europe. Chefchaouen was first painted blue by the Jews who landed here in the 1930s on the run from Hitler’s growing reach. Their choice of hue came from the Jewish tradition of weaving blue thread into prayer shawls to remind people of the sky, the heavens, and ultimately, God’s power.
One of the most fascinating figures connected to Chefchaouen’s history is Sayyida al-Hurra, the daughter of Moulay Ali Ben Rachid. As the Queen of Tétouan and an ally of the infamous Ottoman pirate Barbarossa, she controlled much of the western Mediterranean’s sea routes, launching raids against the Spanish and Portuguese. She later married the Wattasid Sultan of Fez, a rare instance of a Moroccan ruler marrying a queen rather than the other way around.
Read also: The Allure of Blue and White Tile
Spanish Protectorate
After centuries of remaining a stronghold of Moroccan resistance, Chefchaouen entered a new era when Spain established a protectorate over northern Morocco in 1912. The people of Chefchaouen, deeply connected to their independence, joined the broader Moroccan struggle for liberation. In October 1920, General Dámaso Berenguer occupied the city for the Spanish protectorate in Morocco. Following the Spanish retreat from the city, Chefchaouen was part of the Republic of the Rif led by Abd el-Krim from 1924 to 1926. Morocco gained its independence from colonial rule in 1956.
The Blue Medina
Indigo walls. Azure staircases. Heavy cerulean doors set into cobalt archways. After a while, moving through the shifting blues of the medina in the Moroccan town of Chefchaouen can feel more like swimming in the sea than walking around a mountain town. But the famous dipped-in-blue look has less to do with the sea than with the sky. In fact, it’s located in the foothills of the Rif mountain range about a two-hour drive inland from Tangier, the main port city for travelers coming to Morocco from Spain.
The medina, masterfully constructed against ancient mountain slopes, represents Morocco's finest preserved medieval settlements. Pristine thoroughfares, meticulously maintained through generations, showcase walls painted in mesmerizing azure hues. This chromatic tradition emerged from 15th-century Sephardic and Moorish refugees, fleeing Iberian persecution.
Light and colors shift throughout the day, making it possible to walk the same streets over and over again and see something new each time. Wander up and down the stairs. Seek out new murals. Pause by the fountains. One path intersects another in the pleasantly confusing area that is the Chefchaouen medina. At every turn, there is a new subtlety to the shades of blue, a new mosaic pattern by which to be entranced.
The medina stands apart from its Moroccan counterparts, offering gentler commerce and more contemplative passages. At the centre of the medina is the square, Plaza Uta El-Hammam. Plaza Uta el-Hammam commands the city's heart, its stones once echoing with the thundering hooves of cavalry and clash of martial training. Two magnificent monuments dominate this historical stage: the Grand Mosque and the Kasbah.
Read also: Comprehensive Guide to African Blue Basil
The city itself is the sight. Largely shut off from the world for over 400 years beginning in the 15th century, the city feels like it’s from another time. The small streets and alleys are quiet, not teeming with shops and the frenetic energy that defines other cities in Morocco.
Why Blue?
There are several theories as to why the walls were painted blue. One popular theory is that the blue keeps mosquitos away. (A less poetic explanation sometimes tossed around is that it’s to repel mosquitoes by mimicking the look of running water.) In the context of Judaism, blue signifies the sky and heaven, serving as a reminder to lead a spiritually conscious life.
The bulk of the Jewish population left for Israel in 1948. Still, every spring the local government hands out paintbrushes to help keep Chefchaouen’s signature look intact. Adding a fresh wash of color to their homes and alleys are Berbers, Muslims, and the Spanish-speaking descendants of 15th-century exiles from across the Strait of Gibraltar.
An interesting fact about the city is that you will find so many cats on the streets. Seeing them in the blue city is kind of special and different. However, be careful if you get bitten by an undomesticated cat.
The greatest thing about Chefchaouen Morocco, would be the buildings that are painted in brilliant sky blue, which gives the city the name of the “blue city”.
Read also: Morocco's Blue Pearl
Things to Do in Chefchaouen
Blue City of CHEFCHAOUEN: The "Blue Pearl" of MOROCCO
Unlike Marrakesh, Fez, or other places you may spend time on a trip to Morroco, there are really no must-see places in Chefchaouen. Taking photos of Chefchaouen is a dream come true. It’s impossible not to stop and take a photo or 20 when you’re strolling along the city’s streets.
Key Attractions
- Chefchaouen Medina: Getting a little lost among the saturated blue alleys is a sure-fire way to immerse yourself in the environment, so start at the Chefchaouen medina. Here you’ll be surrounded by picturesque doorways, loads of local cats wandering the walkways, and vendors. Even when it’s filled with fellow tourists, it’s worth a wander.
- Kasbah Museum: Next, head to the Kasbah Museum, located inside a former sultan’s palace; it features the exquisite architecture and interiors that you might expect in such a setting. The exhibits dig into the regional history dating back to prehistoric times, offering another layer of “the Blue Pearl.”
- Spanish Mosque: For the best sunset, make the 30-minute hike to the Spanish Mosque at the top of the hill overlooking Chefchaouen. There’s a trailhead at the east end of town that spans a small bridge before you start to climb the hill. The Spanish Mosque, a 1920s architectural testament, presents unparalleled vistas of Chefchaouen's azure tapestry. Perched majestically upon southeastern heights, this structure offers photographers nature's perfect canvas. Pilgrims begin their ascent at Bab El Onsar, crossing ancient bridges before climbing hallowed paths.
- Plaza Uta el-Hammam: Plaza Uta el-Hammam commands the city's heart.
Also ever-present are travelers: Hikers who head out into the verdant Rif Mountains, climbing to the two hornlike peaks (chaoua) that gave the town its name. Shoppers dot the streets, haggling over wool and camel-hair rugs dyed with colors extracted from the mountain’s plants and earth. Backpackers are drawn in by the area’s famed hash. No matter what you end up doing, you’ll be treated to beautiful scenery all along the way.
If it’s Monday, Thursday, or Saturday, don’t hesitate to head to the morning market to see what the local farmers have brought for sale. Grab a coffee and sit for a minute. Pause for an hour or two to have a leisurely lunch. Our pick is Bab Ssour, a fabulous and absurdly affordable spot just off the main square that’s perfect for sampling bissara soup and other local specialties. We liked it so much, we had lunch there both days we were in Chefchaouen.
After lunch, take a walk to the edge of town to see the small waterfall. Consider a hike in the mountains rising above you or just pause for mint tea at the café near the rushing water. Evenings in Chefchaouen are just as relaxed as the rest of the day.
Head down from the waterfall area right towards the river, where there are all kinds of bridges, brooks, and artwork.
You will get to hike to reach the top spot, but it is so easy though. This is a remarkable experience for you.
Shopping in Chefchaouen
I found the shops in Chefchaouen to be absolutely wonderful. There were a lot of wool products and textiles. Prices were similar, perhaps even a bit lower here.
Buying souvenirs from any spot you visit is a remarkable experience. You can choose to buy lots of products including textiles, rugs, straw bags, hats, leather stools, slippers, dresses, and blankets.
Planning Your Visit
Best Time to Visit
The best time to visit Chefchaouen is during spring (March-May) and fall (September-November). Spring temperatures range from 13°C to 24°C, making it perfect to walk through the blue-painted streets. The best time to visit Chefchaouen, weather-wise, is between May and September, when temperatures are more mild. Summer can get quite warm with temperatures up to 35°C. The city also gets crowded from June through August.
How to Get There
Chefchaouen is not terribly close to any major city in Morocco, so getting there does take some time if you don’t have a car or a driver. The bus ride from Fez is 4.5 hours. The most popular route is from Fez, it takes almost 4 hours. It also takes only 2-3 hours from Tangier. Buses arrive daily from Tangier (the closest hub), Fes, Casablanca, and other major cities to the Chefchaouen Station. It’s about a two-hour drive from Tangier, four hours from Fes, and five hours from Casablanca. After that, you need to take a taxi to Medina. It only costs 10-15 MAD. CTM's distinguished fleet maintains steadfast connections to Chefchaouen. Grand taxis, following age-old customs, commence their journey upon achieving full occupancy.
Where to Stay
Many people visit Chefchaouen as a day trip from Fez, though we highly recommend staying a night.
Recommended Riads:
- Riad Hicham: Located in the Old Town, this lovely riad is not only comfortable and cozy, but the staff is spectacular. Choose the Royal Suite or the Panoramic Suite for views from a private terrace.
- Dar Meziana: This charming riad is designed in Andalucian and Moroccan style. Enjoy a traditional breakfast on the terrace, relax in the lounge, or take in the panoramic views of the Rif Mountains. It’s one of the highest rated accommodations.
Safety
Yes, it’s safe to travel to Morocco from the USA.
Duration of Stay
Two full days will give you enough time to see what makes Chefchaouen special. You can spend your first day in the medina and catch the sunset from the Spanish Mosque. If you want to take it easy, you might want to stay for three days.
Chefchaouen Facts and Figures
Here's a table summarizing key facts about Chefchaouen:
| Attribute | Details |
|---|---|
| Founded | 1471 |
| Founder | Moulay Ali Ben Rachid |
| Location | Rif Mountains, Northwest Morocco |
| Population | Approximately 43,000 |
| Key Features | Blue-washed medina, Kasbah, Spanish Mosque |
| Best Time to Visit | Spring (March-May) and Fall (September-November) |
Chefchaouen Today
Chefchaouen is known to be one of the most peaceful and serene towns in Morocco, attracting all types of travelers and adventure seekers. A city is a relaxed place with affordable prices for those who seek calmness and good quality with reasonable accommodation. Yes, Chefchaouen is a must-visit.
For much of its history, Chefchaouen remained a quiet mountain town, known primarily for its spiritual significance, traditional crafts, and stunning natural beauty. As global tourism grew in the 21st century, Chefchaouen transformed into one of Morocco’s most sought-after destinations. Chefchaouen’s journey from a fortress against European invaders to a modern tourist haven reflects its resilience and cultural richness.
Popular articles:
tags: #Morocco
