Rif Mountains · Morocco
Chefchaouen: Morocco's Blue-Washed Mountain Town
Nestled in the Rif Mountains, this former Andalusian refuge is famous for the countless shades of blue painted across its walls, doorways, and stairways.

Tucked into a fold of Morocco's Rif Mountains, Chefchaouen unfolds like a watercolor painting brought to life: cobblestone alleys, arched doorways, and entire building facades washed in shades of blue ranging from pale sky to deep indigo. Founded in 1471 as a small fortress to fight Portuguese incursions, the town later became a refuge for Muslims and Jews fleeing the Spanish Reconquista, giving its architecture a distinctly Andalusian character that still sets it apart from other Moroccan medinas. For centuries it remained largely closed to outsiders, so isolated that few Europeans set foot inside until a Spanish anthropologist finally documented it in 1883. Today, Chefchaouen's blue streets draw photographers and travelers from around the world, even as the exact origins of its signature color remain part legend, part mystery.
A Refuge in the Mountains
Chefchaouen was founded in 1471 by Moulay Ali Ben Rachid as a small kasbah to serve as a base for fighting Portuguese forces that had established coastal outposts in northern Morocco. Its remote, mountainous location, at the base of two peaks that locals say resemble goat horns, giving the town its name (Chaouen roughly translates to 'horns'), made it naturally defensible and difficult for outsiders to reach.
In the following decades, the town absorbed waves of Muslim and Jewish refugees fleeing the Spanish Reconquista and subsequent persecution in Andalusia, bringing distinctly Iberian architectural styles, red-tiled roofs, wrought ironwork, and tiled courtyards, that blended with existing Amazigh and Arab building traditions. The town remained so isolated and insular that it was reportedly closed to Christians and Jews from outside for centuries, and only a handful of Europeans are recorded to have entered before the late 19th century.
Why Blue?
The precise origin of Chefchaouen's blue paint is debated, and several competing explanations circulate among historians and locals alike. One popular theory credits Jewish refugees who settled in the town during the 1930s, fleeing persecution in Europe, and who painted buildings blue in accordance with a traditional Jewish practice linking the color to the sky and to divinity, a custom also found in some other historic Jewish communities.
Other explanations are more practical: blue paint may have helped repel mosquitoes, kept interiors cooler in the mountain heat, or simply became a stylistic trend that local authorities and tourism boards later encouraged residents to maintain once they recognized its appeal to visitors. Regardless of the true origin, the town's population has embraced the tradition, repainting walls each year, and it has become inseparable from Chefchaouen's identity.
Life in the Medina
Chefchaouen's medina, its old walled town, is a dense warren of narrow lanes, whitewashed and blue-painted walls, and small squares shaded by orange and fig trees. The main square, Plaza Uta el-Hammam, sits beside the town's kasbah, a fortress built in the 15th and 18th centuries that now houses a small museum and gardens.
The town has long been known for its weaving and wool textiles, and local markets sell handwoven blankets, goat cheese, and traditional Rif garments alongside the tourist trinkets that have become more common in recent decades. Chefchaouen also sits near the heart of Morocco's kif, or cannabis, growing region, and the Rif mountains surrounding the town have historically been one of the largest cannabis cultivation areas in the world, a fact that shapes much of the informal economy in surrounding villages even though the plant remains illegal for recreational use under Moroccan law.
Tourism and Preservation
Chefchaouen's Instagram-friendly aesthetic has made it one of Morocco's most photographed destinations, drawing a surge of visitors especially since the rise of social media travel photography in the 2010s. The tourism boom has brought new guesthouses, cafes, and souvenir shops into the medina, providing income for a town that historically relied on agriculture and weaving.
Local authorities have worked to preserve the traditional character of the town even as visitor numbers grow, with municipal guidelines encouraging continued use of the blue-and-white color scheme on new construction and renovations. Residents themselves largely maintain the tradition voluntarily, repainting facades before religious holidays or the start of tourist season, ensuring the town's signature hue stays vivid despite exposure to sun, rain, and the wear of thousands of tourist footsteps each year.
Fun facts
- Chefchaouen was founded in 1471 as a fortress against Portuguese incursions.
- One theory traces the blue paint to Jewish refugees who settled there in the 1930s.
- The town's name may derive from a word for 'horns,' referencing nearby mountain peaks.
- Chefchaouen sits near Morocco's Rif region, one of the world's largest cannabis-growing areas.
- Residents repaint the blue walls regularly, often before religious holidays or tourist season.
Gallery




Sources
Other interesting places
View all →Featured lists
View all lists →Compare cities, side by side
Choose any 2 cities →Text on this page is original Terralocate editorial. Background facts compiled from the public sources listed above. Images via Wikimedia Commons under their respective licenses (typically CC BY-SA or public domain).








