Chefchaouen is probably the most photogenic town in Morocco and one of the most unusual in the world. Perched in the Rif mountains, between two peaks that look like horns (hence its name), its medina is a maze of alleys, stairways and façades painted in every imaginable shade of indigo blue. Doors, walls, flowerpots and steps dyed blue create a dreamlike setting you wander through as if inside a painting. There are several theories about why it is blue: that Jewish residents brought it as a sacred colour, that it keeps mosquitoes away, that it keeps the heat off, or simply that it has become the signature look that draws travellers. Whatever the reason, the effect is hypnotic.
But Chaouen is not just a blue postcard. It is a town with strong Andalusian character, founded at the end of the 15th century by Muslims and Jews fleeing the Reconquista and the fall of Granada, and for centuries it remained closed and forbidden to Christians. That isolation gave it a unique atmosphere, slower, more mountain-like and more spiritual than the bustling imperial cities. Life moves slowly here: you stroll, drink mint tea, buy wool blankets and Rif crafts, and watch the sunset from the viewpoints while the call to prayer rings out.
This guide covers the essentials of Chefchaouen from a practical angle: how to get lost in the blue medina, what to see in Uta el-Hammam square and the Kasbah, how to climb to the Spanish Mosque for the best panorama and how to slip away to the Akchour waterfalls in the heart of the Rif. One tip from the start: stay at least one night. The town changes once the midday groups leave, and sunrise and sunset, with golden light on the blue, are the moments that make Chaouen unforgettable.
Chefchaouen was founded in 1471 by Moulay Ali ben Rachid, a local leader, as a fortress (kasbah) to resist the advance of Portuguese and Spanish conquests in North Africa. It soon became a refuge for the Muslims and Jews expelled from al-Andalus: the fall of Granada in 1492 and the forced conversions and expulsions that followed led thousands of Andalusians to cross the strait, and many settled here, giving the town its unmistakable Andalusian feel in architecture, crafts and customs. For centuries Chaouen was a holy, closed city, forbidden to Christians on pain of death: it is said that only a handful of Europeans managed to get in, in disguise, before the 20th century, among them an explorer or two who paid for their daring. The town was part of the Spanish protectorate of Morocco (1912-1956), which explains why so many older residents speak Spanish and buildings such as the 'Spanish Mosque' that crowns the valley. The characteristic blue of its houses is not as old as it looks: it caught on mainly during the 20th century, and some attribute it to the Jewish community (for whom indigo blue had sacred connotations), although it has also spread as an aesthetic and tourist draw. After Moroccan independence in 1956, Chefchaouen became part of the kingdom and, in recent decades, has turned into one of the country's great tourist icons. The full story is on our history page.
Read the full history ↓The region of the Strait and the Rif: Tangier, the gateway between Africa and Europe, once Roman Tingis and famous as an international zone of spies and writers; and Chefchaouen, the blue town founded by Andalusians, in mountains that were the cradle of Abd el-Krim's rebellion.
Read the history of The north: Tangier and Chefchaouen →If you book from here we earn a commission and you pay no more. Prices and availability come from Civitatis.
No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.
Origins, formation and what the sources say.
Chefchaouen is not an ancient city in the way Fez or Marrakech are: it was born at a very specific moment and for a very specific reason. In 1471, a local leader named Moulay Ali ben Rachid, said by tradition to descend from the Prophet and linked to the region's religious brotherhoods, founded a kasbah here, a walled stronghold, at a strategic and well-defended spot in the Rif mountains. The city's name, Chefchaouen or Chaouen, comes from the Berber 'ichawen' ('the horns'), after the two peaks that rise above it and against which it rests.
The context explains everything. In the late 15th century, the Christian powers of the Iberian Peninsula, Portugal and Castile, were pushing hard along the coasts of North Africa: the Portuguese had taken Ceuta in 1415 and other strongholds besides, and the Spanish Reconquista was about to end with the fall of Granada. Chefchaouen was built precisely as a bastion of Muslim resistance against that advance, a mountain stronghold from which to harass the invaders and protect the interior of the country.
That warrior and religious calling shaped the city's character from the very start: closed, proud and deeply Islamic. The red Kasbah that still dominates Uta el-Hammam square is the heart of that foundation, the core around which grew the medina the whole world admires today.
What gave Chefchaouen its unmistakable soul was the mass arrival of people from al-Andalus. The fall of Granada in 1492 ended almost eight centuries of Muslim presence in the Iberian Peninsula, and in the decades that followed, forced conversions, pressure from the Inquisition and finally expulsions drove thousands of Muslims (Moriscos) and Sephardic Jews to cross the strait and seek refuge in northern Morocco.
Many of those exiles settled in Chefchaouen, which became a small Andalusia transplanted to the Rif mountains. They brought their crafts, their music, their food and, above all, their way of building: white houses with gabled roofs and brickwork, courtyards, silk and leather craftsmanship, and a layout of intimate alleyways that recalls the villages of the Alpujarra or the Morisco quarters of Andalusia. The Jewish community, for its part, had a significant presence here for centuries, with its own mellah (Jewish quarter), and it is often credited with the tradition of the indigo blue colour.
That Andalusian blend explains why Chefchaouen feels different from the rest of Morocco: more tucked away, whiter (before it turned blue), more 'European' in its layout. For centuries the city lived turned in on itself, and its reputation as a holy place kept it almost completely closed to the outside world.
For almost four centuries, Chefchaouen was a holy, closed city, forbidden to Christians on pain of death. Its isolation in the mountains and its strong religious character made it an almost mythical, inaccessible place for Europeans, who barely knew it existed beyond rumours.
The Westerners who managed to get in before the 20th century can be counted on the fingers of one hand, and almost all of them did so in disguise and at the risk of their lives. The most famous case is the French explorer Charles de Foucauld, who in 1883 travelled through Morocco posing as a Jewish rabbi so he could study the country, and who left one of the first descriptions of the city. Another early visitor was the American-British journalist Walter Harris, at the start of the 20th century. These forays, recounted with amazement in Europe, fed the legend of Chaouen as a 'forbidden city' even further.
The city's secret was broken for good with the arrival of colonialism. In 1920, under the Spanish protectorate in Morocco, Spanish troops occupied Chefchaouen. It is said that the first soldiers to enter were surprised to find customs, and even ways of speaking, from medieval Spain still alive among the descendants of the Jews and Moriscos expelled centuries earlier: a fossilised echo of al-Andalus that had survived in isolation.
The 1920 occupation brought Chefchaouen into the Spanish protectorate in Morocco, the northern strip of the country that Spain ran between 1912 and 1956. But Spanish rule was not peaceful. In those same years, the Rif mountains were the stage for fierce anti-colonial resistance led by Abd el-Krim, who in the Rif War dealt Spain humiliating defeats, such as the disaster of Annual in 1921, before being finally beaten by a Franco-Spanish coalition.
Chefchaouen changed hands during that conflict: it was taken by Abd el-Krim's forces and later recaptured by the Spanish. The protectorate left its mark on the city in many ways. The most visible is the so-called Spanish Mosque, built in the 1930s on the hill facing the medina as a gesture of goodwill towards the local population (although it was hardly ever used). But the most lasting imprint is linguistic: even today many older residents of Chaouen speak fluent Spanish, a legacy of the decades of Spanish administration, which is unusual in the rest of Morocco, where French dominates.
That Hispanic past makes Chefchaouen a particularly endearing destination for Spanish-speaking travellers, who find a cultural closeness here and an ease of communication that are hard to come by in other parts of the country.
Morocco regained its independence in 1956, and Chefchaouen, like the rest of the former Spanish protectorate, became part of the kingdom. For decades the city remained a quiet, out-of-the-way corner of the north, known for its relaxed atmosphere, its crafts and, for a certain kind of traveller in the sixties and seventies, the cannabis grown in the surrounding Rif mountains.
The big turning point came with the colour blue and with social media. Although indigo blue has old roots (linked, according to the most common theory, to the Jewish community), the habit of systematically painting the whole medina blue spread over the 20th century and intensified in recent decades, partly as an aesthetic draw. With the arrival of digital photography and Instagram, Chefchaouen's indigo alleyways became one of the most photographed and shared backdrops on the planet, and the city went from secret to global tourist icon in just a few years.
Today Chefchaouen lives largely from tourism, with the challenge of keeping its authenticity in the face of the crowds that arrive on day trips. Even so, it remains a mountain city proud of its history: the fortress founded in 1471 against the Christians, the refuge of the exiles from al-Andalus, the forbidden city that kept a piece of al-Andalus alive for centuries. Wandering its blue maze at dawn, before the groups arrive, is still one of the most beautiful and unique experiences Morocco has to offer.