Discovering...
Discovering...

Morocco's 'blue city' is one of the country's most photographed places, but no one can point to a single, documented reason its medina turned blue. This guide weighs the five leading explanations, from Jewish heritage to keeping cool and repelling insects, sets them against the town's 550-year history, and maps the bluest lanes and best viewpoints so you can judge for yourself.
The short answer
No single proven reason; several theories, likely combined
Founded
1471, as a fortress town by Moulay Ali ben Rachid
Leading theory
Jewish refugees painted blue as a symbol of sky and the divine
Most practical theory
Blue lime-wash reflects heat and is repainted regularly
Bluest area
The medina below the kasbah, toward Ras el-Maa
Best viewpoint
The Spanish Mosque hill at sunset, over the blue town
Sofia Marín· Coast, North & Practical Travel Editor
Spanish travel writer based in Tangier who criss-crosses northern Morocco and the Atlantic coast by bus, train and ferry. She covers Chefchaouen, Tangier, Essaouira and the practical side of getting around. Tangier · 10+ years covering Morocco
Published 6 November 2025 Last updated 17 July 2026
If you want one tidy fact, Chefchaouen disappoints: there is no contemporaneous document that records who first painted the town blue or why. What survives instead is a set of overlapping explanations, some historical, some practical, some spiritual and at least one commercial, none of which fully excludes the others. The honest answer historians give is that the blue evolved over time and that several motives probably reinforced each other, which is why you will hear a different story from almost every guide, shopkeeper and blog.
It also helps to know that the town was not always this blue. For much of its history the medina was lime-washed white, often with green (the colour of Islam) picked out on doors and details, as in many northern Moroccan towns. The pervasive, wall-to-wall blue that defines Chefchaouen today is largely a twentieth-century development that has intensified in the decades since, maintained and extended by residents who repaint regularly. So the real question is less 'why was it built blue' than 'why did it become, and stay, blue', which the theories below try to answer.
Chefchaouen was founded in 1471 by Moulay Ali ben Rachid as a fortified base in the Rif mountains, partly to resist Portuguese expansion along the coast. Over the following decades it absorbed waves of Muslim and Jewish refugees fleeing the Reconquista in Spain, and their Andalusi taste shaped the medina you walk today: whitewashed houses with red-tiled roofs, arched doorways, tight stepped lanes and a Hispano-Moorish feel unusual in Morocco. The kasbah and the main square, Place Outa el-Hammam, date from this formative era.
For centuries the town was famously closed and conservative, off-limits to outsiders, and it remained small and remote well into the twentieth century, when a Spanish protectorate period and, later, mass tourism opened it up. That long isolation preserved the compact old medina almost intact, giving the blue a perfect, uniform canvas of narrow lanes and stairways. Understanding this backstory matters, because two of the leading colour theories, Jewish heritage and spiritual symbolism, are rooted directly in the refugee history and the town's insular, devout character. The kasbah's story is told in the kasbah museum guide.
Five explanations dominate the debate, and it is worth taking them one at a time rather than accepting the first you are told. The best-known is the Jewish-heritage theory: that Jewish residents, especially refugees arriving in the 1930s, painted their homes and the town blue because in Judaism blue (tekhelet) evokes the sky, the heavens and the divine. It is the most romantic and most repeated story, and it fits the town's refugee history, though critics note the all-over blue postdates much of the historic Jewish presence.
The others are more prosaic. The cooling theory holds that blue lime-wash reflects sunlight and keeps interiors cooler, a genuine property of pale paint, and that repainting maintains hygiene. The mosquito theory, that blue deters insects because it resembles water or confuses them, is popular but has little scientific backing and is best treated as folklore. The spiritual or aesthetic theory says blue simply induces calm and reflects the sky and mountain streams, echoing Sufi and mystic sensibilities. And the tourism theory, hard to dismiss, recognises that whatever started the blue, the town now maintains and expands it because it draws visitors from around the world.
| Theory | The claim | How well it holds up |
|---|---|---|
| Jewish heritage | Blue symbolises sky and the divine (tekhelet) | Most cited; fits refugee history, but all-over blue is later |
| Keeping cool | Pale lime-wash reflects heat, aids hygiene | Plausible and practical; a real property of the paint |
| Repelling mosquitoes | Blue deters insects near water | Popular folklore, little scientific support |
| Spiritual / aesthetic | Blue evokes calm, sky and streams | Cultural resonance rather than hard evidence |
| Tourism / upkeep | The town keeps it blue because it draws visitors | Clearly true today, whatever the origin |
The colour itself is not paint in the modern sense but a lime-wash tinted with blue pigment. Traditionally the base is slaked lime (chaux), coloured with a blue powder, historically natural indigo or copper-based pigments and today usually inexpensive synthetic blue powders sold in the souk. Residents mix it with water and brush it over walls, steps and doorframes, which is why the shade varies from a pale, chalky powder-blue to deep cobalt and even lilac from lane to lane and season to season.
Crucially, lime-wash fades, so the town has to be repainted often, commonly once a year and frequently before the summer season. That constant renewal is part of why the blue looks so vivid in photographs and why no two visits look quite the same. It also explains the tourism theory neatly: keeping the medina blue is an active, ongoing choice by its residents, not a one-off historic act. If you visit in late spring you may catch fresh coats going on, which is when the colour is at its most saturated.
The blue is not uniform across town, so knowing where to point yourself saves time. The most intense, photogenic lanes cluster in the medina below the kasbah, on the slope running down toward Ras el-Maa, the little waterfall at the medina's edge where streams and washing points gather. Here the stepped alleys, plant pots, studded doors and hanging rugs give the classic Chefchaouen shot. Place Outa el-Hammam and the kasbah anchor the medina, while the shopping lanes fan out from there, covered in the Chefchaouen shopping and crafts guide.
For the best light, come early: the famous flowery blue staircases and narrow passages are quiet and softly lit soon after dawn, before day-trippers arrive and while shadows are long. The other essential shot is from above, and the Spanish Mosque on the hill east of the medina delivers a sweeping view over the whole blue town, unbeatable at sunset and detailed in the Spanish Mosque sunset guide. The waterfall corner is mapped in the Ras el-Maa guide.
| Spot | Why go | Best time |
|---|---|---|
| Lanes below the kasbah | Classic blue stepped alleys, plant pots | Just after dawn |
| Ras el-Maa waterfall edge | Blue lanes meet streams and greenery | Morning |
| Place Outa el-Hammam | Kasbah, cafes, medina heart | Late afternoon |
| Flowery blue staircases | Iconic Instagram alley shots | Early morning, quiet |
| Spanish Mosque hill | Panorama over the whole blue town | Sunset |
Pulling it together, the most defensible answer is that Chefchaouen is blue for several reasons at once, layered over time. A refugee-era spiritual meaning likely seeded the colour, practical benefits like cooling and the folk belief about insects encouraged its spread, an aesthetic and mystic appreciation of blue helped it stick, and tourism now guarantees its survival. Anyone who tells you it is purely one of these is oversimplifying a story that the historical record simply does not settle.
For a visitor, the uncertainty is part of the charm: you can walk the lanes, hear three different explanations before lunch, and decide which you find most convincing. Whatever the origin, the experience is the same, a small mountain medina painted every shade of blue and repainted with pride each year. To build a visit around it, use the one-day Chefchaouen itinerary and, if you are still deciding whether to make the trip north, the honest verdict in is Chefchaouen worth visiting.
There is no single proven reason. The most repeated story is that Jewish refugees painted the town blue as a symbol of the sky and the divine (tekhelet). Other explanations include practical cooling, since pale lime-wash reflects heat; a folk belief that blue repels mosquitoes; a spiritual and aesthetic love of blue evoking sky and streams; and, undeniably today, tourism, as the town maintains and extends the blue because it draws visitors. Most historians think the colour resulted from several of these motives combined over time.
It is the most cited origin story and fits the town's history as a refuge for Jews fleeing Spain and, later, Nazi Europe in the 1930s, with blue carrying strong spiritual meaning in Judaism. However, historians caution that Chefchaouen was mostly white for much of its past and that the pervasive, all-over blue is largely a twentieth-century development, in some cases postdating the main Jewish presence. So the theory is plausible and popular, but not the whole story, and it cannot be confirmed from the historical record alone.
Probably not in any meaningful way. The idea that blue deters mosquitoes, perhaps by resembling water or confusing insects, is a widely repeated local belief but has little scientific support. It is best treated as folklore that may have encouraged repainting rather than as the real reason the town is blue. The more credible practical explanation is that pale lime-wash reflects heat and keeps interiors cooler, and that regular repainting maintains cleanliness, both genuine benefits of the tradition.
No. For much of its history since its founding in 1471, the medina was lime-washed white, often with green details picked out on doors, as in many northern Moroccan towns. The wall-to-wall blue that defines it today is largely a twentieth-century phenomenon that has intensified in recent decades, actively maintained by residents who repaint the lime-wash roughly every year. So while the town is old, the famous blue is a relatively modern and continually renewed feature rather than an original one.
The most intense blue clusters in the medina below the kasbah, on the slope down toward the Ras el-Maa waterfall, where stepped alleys, plant pots and studded doors give the classic look. The famous flowery blue staircases are best photographed just after dawn, before crowds arrive. For a panorama over the whole blue town, climb to the Spanish Mosque on the hill east of the medina, which is spectacular at sunset. Place Outa el-Hammam and the kasbah anchor the old town in between.
Early morning and the golden hour. Soon after dawn the famous lanes and staircases are quiet and softly lit, before day-trippers arrive, which is ideal for the classic close-up alley shots. Late afternoon into sunset suits the wider view from the Spanish Mosque hill, when warm light bathes the blue town. The colour is at its most saturated in late spring, when many residents apply a fresh coat of lime-wash before summer, so a visit then rewards photographers.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,011Sahara Desert Luxury Expedition
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete
Attractions & Heritage
The short hike to the Spanish Mosque viewpoint above the Blue City for the classic sunset panorama, plus Ras el-Maa.
Read guidePractical Guides
An hour-by-hour Blue City plan for the medina, Spanish Mosque sunset and Ras el-Maa, with an Akchour add-on.
Read guideAttractions & Heritage
Single-attraction deep guide to the 15th-century Kasbah on Plaza Outa el-Hammam: Andalusian garden, tower climb, ethnographic museum, ticket price and hours, layout room-by-room, best time of day, com
Read guidePractical Guides
The best months to visit the Blue City, with Rif weather, photography light, hiking seasons and what to pack.
Read guideAttractions & Heritage
Guide to the Ras el-Maa spring and cascade at the medina edge: the communal washhouse, riverside cafes, walking route from Plaza Outa el-Hammam, onward path toward the Spanish Mosque, best light, and
Read guideAttractions & Heritage
Shopping the Blue City: hand-woven wool blankets, goat cheese and honey, natural pigments and Rif basketry, with fair prices.
Read guide