Last updated: June 2026
Nobody actually knows for certain why Chefchaouen is blue - and any article that tells you otherwise is selling you a tidy story over a messy truth.
That said, we do know quite a bit. There are four main explanations you’ll hear - the Jewish heritage theory, the mosquito-repellent claim, the heat-reflection argument, and the modern tourism reality - and they are not equally supported by evidence. After six trips to Chefchaouen since 2017, I’ve read around this question more than is probably healthy, and here is my honest breakdown.
The Town’s Origins: Founded 1471, Shaped by Refugees
Before the blue walls, there was a town with a complicated past worth understanding.
Chefchaouen was founded in 1471 by Ali ibn Rashid al-Alami, a local Berber leader, primarily as a military fortification to resist Portuguese raids along Morocco’s northern coast. At that point it was a small Kasbah in the Rif Mountains, not a significant settlement.
The population that would define the town’s character arrived in waves over the following decades. After 1492 - when the Alhambra Decree expelled Jews and Muslims from Spain - thousands of Sephardic Jews and Andalusian Muslims crossed the Strait of Gibraltar. Many settled in Chefchaouen, bringing with them their crafts, architecture, music, and religious traditions. These weren’t poor refugees arriving empty-handed: they were skilled artisans, merchants, and scholars displaced from one of the most culturally rich civilisations in medieval Europe.
For the next few centuries Chefchaouen remained largely closed to outsiders. Non-Muslims were reportedly barred from entering until the Spanish occupied the region in 1920. That isolation preserved a distinctive character you can still feel today walking the older lanes of the medina.
Theory 1: The Jewish Heritage Explanation (Most Historically Grounded)
The most historically supported explanation connects the blue to Chefchaouen’s Sephardic Jewish community.
In Jewish tradition, the colour blue - tekhelet in Hebrew - carries deep spiritual significance. It appears in the Torah as the colour of the divine, of the heavens, of God’s presence. Observant Jews traditionally used tekhelet dye in prayer shawls and ritual objects. The idea of surrounding yourself with blue as a reminder of the sacred is genuinely rooted in Jewish religious practice.
The theory is that the Jewish refugees who settled in Chefchaouen from the 15th century onward introduced the custom of painting buildings blue, and the practice spread through the community over generations.
What complicates this: the blue walls as a widespread phenomenon are a 20th-century development, not a 15th-century one. Photographs of Chefchaouen from the early Spanish colonial period (1920s-1930s) show a largely white town. The blue appears to have become dominant during a period when the Jewish population was actually growing - many European Jews fleeing Nazi persecution in the 1930s and 1940s settled in Chefchaouen - and this is when accounts suggest the painting practice intensified.
When Morocco’s Jewish community largely emigrated to Israel after 1948, the tradition they had established was already embedded in the visual identity of the place.
This is the most credible origin story. It has historical context, a traceable community, and a plausible cultural mechanism. That doesn’t mean it’s definitively proven - it means it’s the best-supported explanation among a set of imperfect theories.
Theory 2: The Mosquito Repellent Claim (Popular, Poorly Supported)
You will hear this one constantly - from guides, from other tourists, from blogs that repeat it without question. The claim is that blue paint repels mosquitoes because indigo dye contains properties that deter insects, or because mosquitoes avoid blue surfaces.
There is no credible scientific evidence for this.
Mosquitoes are attracted by CO2, body heat, and certain body odours. The colour of a wall has no demonstrated effect on whether they breed or bite nearby. The Rif Mountain region does have moisture and insects in summer, so the desire to repel mosquitoes would have been real - but that doesn’t validate the method.
What’s interesting is that some local residents still give this as their reason for painting blue. That tells you something about how folk explanations persist and circulate, not about whether the explanation is true. I’ve had this conversation with a shopkeeper in the medina who was absolutely convinced about the mosquitoes. He was a lovely man and probably knew his own street better than any historian, but “people believe it” is different from “it works.”
File this one under: plausible-sounding, widely repeated, not backed by evidence.
Theory 3: The Keeping-Cool Argument (Logical, but Probably Not the Origin)
The heat-reflection theory goes like this: light colours reflect sunlight rather than absorbing it, keeping interiors cooler. Blue is a light colour. Therefore blue paint keeps buildings cool in Morocco’s climate.
This is physically accurate as far as it goes. Light-coloured exterior paint does reduce heat absorption compared to darker colours. You see white and pale-coloured buildings throughout the Mediterranean and Middle East for exactly this reason.
The problem is that it probably explains why nobody painted the walls black, not why anyone chose blue specifically over white or cream. White reflects sunlight just as well. If keeping cool were the driver, you’d expect more variation - and historically you’d also expect the practice to be older than the 20th century.
It’s a reasonable secondary benefit of the blue walls, not a convincing origin story.
The Honest Modern Reality: Tourism Keeps It Blue Now
Here is the part most articles dance around because it feels unromantic.
Large sections of the medina that are blue today were still white as recently as 40-50 years ago. The spread of the blue through the entire old town correlates directly with Chefchaouen’s rise as a tourist destination in the latter half of the 20th century. As visitors arrived specifically to see the blue city, residents extended the blue further, and the municipality encouraged maintaining it as a shared aesthetic.
Today, individual homeowners and shopkeepers repaint their own walls - there is no single city-organised painting programme, though local authorities do encourage the practice. Locals typically repaint twice a year, with a fresh coat often timed before Ramadan. Walk through the medina in quieter months and you’ll occasionally see someone mid-job with a bucket and brush.
The blue is now a self-reinforcing civic identity. People maintain it because it defines the town’s brand, because it attracts visitors, and because - after several generations - it genuinely is a cultural tradition, whatever its origins. That’s not cynical. Traditions often work this way: they begin for one reason, spread for another, and persist because they have become genuinely meaningful to the people who practice them.
Can You See Non-Blue Parts?
Yes. If you move away from the main tourist lanes of the medina and into quieter residential areas, you’ll find walls that are plain white, beige, or unfinished concrete. The blue is densest in the photogenic central areas - the Plaza Uta el-Hammam, the network of lanes around it, and the streets near the Spanish mosque overlook.
The Kasbah itself is largely terracotta and ochre inside, which surprises some visitors. There is also considerably more colour variation at street level than the Instagram version of Chefchaouen suggests - bright yellow doors, terracotta pots, green vegetation. The blue-on-blue perfection is partly real and partly a function of how people photograph the place.
If you want to see Chefchaouen honestly - which I’d encourage, having visited several times - read the Chefchaouen travel guide before you go and set realistic expectations about what the town is and isn’t.
The Verdict: Layered Origins, Honest Uncertainty
The most accurate answer to “why is Chefchaouen blue” is this: the practice most likely began with the Sephardic Jewish community in the 20th century, particularly as that population grew in the 1930s; it was rooted in the Jewish tradition of tekhelet and the sacred significance of blue; it was probably reinforced by practical beliefs about mosquitoes and heat, whether or not those beliefs were accurate; and it was then extended and maintained by the wider Muslim Moroccan community after the Jewish emigration of the 1950s, with tourism providing a major incentive for doing so.
No single explanation is the whole story. Anyone who tells you it’s definitely the Jews, or definitely the mosquitoes, or definitely the tourism industry, is oversimplifying. The blue walls of Chefchaouen are a living tradition with layered roots - which, honestly, makes them more interesting than a single clean explanation would.
If you’re heading there, the Chefchaouen photo spots guide will help you find the best light and the least-crowded angles, and things to do in Chefchaouen goes well beyond the medina walls. You can also browse Morocco tours from Chefchaouen if you want to combine it with the wider country.
Frequently Asked Questions
When did Chefchaouen start being painted blue?
The widespread blue-painting of Chefchaouen appears to date primarily from the 20th century, particularly the 1930s-1940s when the town’s Jewish population was at its peak and growing with refugees from Europe. Photographs from the early Spanish colonial period (1920s) show a predominantly white town. The blue became almost universal across the medina in the latter half of the 20th century, partly driven by tourism.
Did Jewish people paint Chefchaouen blue?
This is the most historically supported theory. The Sephardic Jewish community that settled in Chefchaouen - first after the 1492 expulsion from Spain, and again in the 1930s-1940s - is widely credited with introducing the blue-painting tradition. In Jewish tradition, the colour blue (tekhelet) represents the divine and the heavens. The tradition appears to have been adopted by the wider community after most of Chefchaouen’s Jewish residents emigrated to Israel after Moroccan independence in 1956.
Does blue paint actually repel mosquitoes?
There is no scientific evidence that blue paint deters mosquitoes. Mosquitoes are attracted by body heat, CO2, and scent - not wall colour. The mosquito-repellent theory is widely repeated and believed by some local residents, but it has no credible research supporting it. It is best understood as a folk explanation rather than a factual one.
Who paints the blue walls of Chefchaouen?
Individual residents and shopkeepers are responsible for painting their own buildings. There is no city-run painting scheme, though local authorities encourage maintaining the blue aesthetic. Most residents repaint roughly twice a year, with a fresh coat often applied before Ramadan. You can see repainting in progress if you visit in quieter seasons.
Is all of Chefchaouen blue?
No. The blue is most intense in the central medina - the tourist-facing areas around Plaza Uta el-Hammam and the main residential lanes. Outer residential neighbourhoods have more plain white and unfinished walls. The Kasbah interior is largely terracotta. The concentrated blue you see in photographs is real, but it does not cover every surface in the city.
Is Chefchaouen worth visiting even knowing the tourism reality?
Yes - the tourism reality makes the town less mysterious, not less worthwhile. The medina is genuinely beautiful, the Rif Mountain setting is dramatic, and the craft market, food, and human scale of the place are all excellent. Knowing that the blue is partly maintained for tourism doesn’t change any of that. It just means you’re seeing the town as it actually is, rather than through a myth.