Chefchaouen — The Blue City of the Rif Mountains
Chefchaouen is the blue city of the Rif Mountains, its lanes washed in every shade of blue. Founded in 1471, it still feels like a mountain refuge.
Chefchaouen is the most photographed town in Morocco, and the reason is visible from the first step into the medina. The walls, the doors, the stairways and the pots are all painted blue, in shades that run from pale sky to deep indigo, and the effect is unlike anywhere else in the country. The town sits in the Rif Mountains of the north, at about 600 metres above sea level, under two peaks shaped like horns, and its air is cooler and wetter than the cities of the plain.
Chefchaouen was founded in 1471 as a fortress against the Portuguese, and it became a refuge for Muslims and Jews fleeing Spain, a closed city in the nineteenth century, and a Spanish town in the 1920s. Today it is a place of quiet streets, mountain walks and slow days, and the travellers who come here for a day often stay for two.
Quick Facts
- Name: Chefchaouen, called Xauen in Spanish and Ashawen in Berber, meaning the horns, after the two peaks above the town – Where it lies: In the Rif Mountains of northern Morocco, in the region of Tanger-Tetouan-Al Hoceima – Elevation: About 600 metres above sea level, with a cool mountain climate – Population: About 45,000 in the town, and about 550,000 in the province – Founded: In 1471 by Moulay Ali Ben Rachid, as a fortress against the Portuguese at Ceuta – Famous for: The blue-painted medina, the Spanish Mosque, the Ras El Maa spring and the Akchour waterfalls – Nearest World Heritage: The medina of Tetouan, ref 837, about 46 kilometres in a straight line to the north – Best months: March to May and September to November, when the weather is mild and the light is clear – Getting there: By bus from Fes, Tangier and Tetouan, through the Rif Mountains, with no airport or railway in the town
Geography of Chefchaouen
Chefchaouen lies in the Rif Mountains of northern Morocco, under two peaks that rise like horns above the town, and the Berber name Ashawen, meaning the horns, comes from their shape. The town’s coordinates are 35°10′08″ N, 5°16′06″ W, and it sits at about 600 metres above sea level, in a valley where the mountains meet the plain. The Rif is the wettest mountain range in Morocco, and Chefchaouen receives about 800 millimetres of rain in a year, far more than the cities of the south, which is why the hills around the town are green with cedar, oak and pine.
The Ras El Maa spring rises at the eastern edge of the medina, and its clear water has supplied the town for centuries, running down in channels past the old mills and the washing places. The Talassemtane National Park lies close to the town, a protected area of cedar forest, gorges and mountain trails, and the Akchour waterfalls, about 30 kilometres by road to the east, are the most popular day trip from the town.
The town is the capital of the province of Chefchaouen, a province of about 4,180 square kilometres and about 550,000 people, in the region of Tanger-Tetouan-Al Hoceima. The province runs from the Rif Mountains in the south to the Mediterranean coast in the north, and it includes coastal towns, mountain villages and the farmland of the valleys. Chefchaouen itself is the administrative, educational and medical centre of the province, with schools, a hospital and the offices of the local government, and its economy rests on agriculture, tourism and handicrafts.
The town’s population has grown steadily, with people moving in from the surrounding villages to work in the hotels, restaurants and shops, and new neighbourhoods have grown up outside the old medina. The town is small by Moroccan standards, and its centre is the medina, a compact maze of blue lanes that can be walked in a morning.
The climate of Chefchaouen is the climate of the mountains, Mediterranean in character but cooler and wetter than the coast. Summer is mild and dry, with temperatures that rarely pass 32 degrees, and the mountain air makes the heat easy to bear. Winter is cold and damp, with rain, fog and sometimes snow on the higher peaks, and the temperature can fall to about five degrees.
The rain falls mostly in winter, and the town’s blue walls look their best after rain, when the colours are at their deepest and the lanes are quiet. The best months to visit are March to May and September to November, when the weather is mild, the sun is bright and the rain is light. Travellers should bring a warm layer in winter and a rain jacket in the wet season, since the mountain weather changes quickly.
Chefchaouen is a town without an airport or a railway station, and its geography is the geography of the road. The town lies about 129 kilometres in a straight line north-west of Fes, or about 200 kilometres by road through the Rif, and the bus takes about four hours. Tangier lies about 83 kilometres in a straight line to the north-west, or about 110 kilometres by road, and the bus takes about two and a half hours.
Tetouan, the nearest city, is about an hour and a half by bus, and the road between the two towns runs through the mountains with views across the Rif. The nearest airports are at Tangier, about 110 kilometres by road, and at Fes, about 200 kilometres by road, and most travellers fly to one of the two and continue by bus. Inside the town, visitors walk, since the medina is small and its lanes are too steep and narrow for cars, and the walk is the pleasure of the place.
The mountains around Chefchaouen are the town’s other geography, and they are the reason many travellers come. The two peaks above the town, Jebel el-Kelaa and Jebel Meggou, rise to more than a thousand metres, and the trails from the town climb through cedar and oak to viewpoints that take in the whole valley. The Talassemtane National Park protects the cedar forests and the gorges of the Rif, and its trails lead to the God’s Bridge, a natural stone arch over a river, and to the Akchour waterfalls, where the water runs clear through pools and over rocks.
The park is home to the Barbary macaque, the only monkey north of the Sahara, and to birds of prey that circle the cliffs. The mountains are the town’s backyard, and the walks from the town are among the best in Morocco.
The God’s Bridge, a natural stone arch over a river in the Talassemtane National Park, is one of the most striking features of the mountains around Chefchaouen. The arch was carved by the river over thousands of years, and it spans the gorge in a single span of rock. The walk to the bridge from the town takes a few hours, and the trail passes through cedar forest and past the villages of the Rif. The bridge is the park’s great sight, and it shows the wild heart of the mountains that shelter the town.

Akchour, Chefchaouen — CC BY-SA 4
History of Chefchaouen
Chefchaouen was founded in 1471 by Moulay Ali Ben Rachid, a Berber lord, as a fortress against the Portuguese, who had taken Ceuta, a coastal town about 80 kilometres in a straight line to the north. The town was built on a hill, with a kasbah, a mosque and walls, and it became a refuge for Muslims and Jews fleeing Spain during the Reconquista, when the Catholic kings expelled both communities from the Iberian Peninsula. The Jewish families who settled in Chefchaouen brought with them the tradition of painting their houses blue, and the colour, which some say symbolises the sky and heaven, spread through the medina until the whole town was blue. The origin of the blue is still debated, and other explanations hold that the colour keeps the houses cool in summer and keeps the mosquitoes away, but the blue itself is beyond dispute, and it is the town’s identity.
Under the Saadian and Alaouite dynasties, Chefchaouen grew into a religious and trading centre of the Rif, with mosques, schools, markets and craft workshops, and it became one of the most important Berber towns in Morocco. The town’s scholars and poets were known across the country, and its weavers, potters and leather workers supplied the markets of the north. In the nineteenth century, Chefchaouen was a closed city, and foreigners were forbidden to enter, which gave the town a reputation for mystery that drew travellers and writers to its gates.
The town’s isolation preserved its character, and the blue medina, the kasbah and the mosques survived the century almost unchanged. The town was small and quiet, a mountain refuge far from the politics of the coast and the plain.
In 1920, Spain occupied Chefchaouen during the Rif War, and the town became part of Spanish Morocco, with new buildings, streets and a Spanish Mosque built on a hill above the town. The Spanish Mosque, built in the 1920s, is one of the town’s most famous landmarks, with its tall tower and its view over the blue rooftops and the Rif. Under Spanish rule, the town grew with new neighbourhoods, schools and a hospital, and Spanish families settled in the town.
In 1956, Morocco became independent, and Chefchaouen became a town of the Kingdom of Morocco, with new districts and new projects. The Spanish period left its mark on the town’s architecture and on its name, Xauen, which is still used in Spanish, and the Spanish Mosque remains the town’s best viewpoint, especially at sunset.
Tourism in Chefchaouen grew from the 2000s, when the blue town became famous on social media and on travel websites, and visitors from around the world began to come to photograph the lanes, to walk in the mountains and to explore the Rif. The town became one of the most photographed places in Morocco, with its blue stairways, its blue doors and its craft shops, and new hotels, guesthouses and restaurants opened in the medina and the new town. The town has kept its quiet character through the growth, and the medina is still a place where the residents live and work, not only a place for visitors. Today Chefchaouen is a lively tourist town, with visitors arriving from Fes, Tangier and Marrakech, but it still feels like a mountain town, with the blue medina, the kasbah and the mosques as its symbols.
The blue of Chefchaouen is the town’s living tradition, and it is maintained by the residents themselves. The houses are repainted regularly, in shades that vary from house to house, and the colour is renewed by hand, with brushes and buckets, in the same way it has been done for generations. The town’s craftsmen make the blue paint from local pigments, and the colour is part of the town’s economy, since the visitors who come to see it stay in the hotels, eat in the restaurants and buy in the shops.
The blue is also a matter of pride, and the residents speak of it as the town’s identity, a colour that sets Chefchaouen apart from every other town in Morocco. The town’s history is the history of a refuge, and the blue is the mark of that refuge, a colour that has lasted for five centuries.
The town’s crafts are part of its history as well, and the weavers of Chefchaouen are famous for their woollen blankets and their striped fabrics. The weaving is done on wooden looms in the medina, and the blankets, with their bold stripes of red, white and blue, are sold in the shops of the town and across Morocco. The craft came with the refugees from Spain, and it has been practised in the town for five centuries, passed from parent to child in the same workshops.

View of Chefchaouen and the Rif Mountains at sunset, photographed from the Spanish Mosque (Mosque Bouzaafer) overlooking the blue medina, northern Morocco — CC BY-SA 4
Travel to Chefchaouen
Chefchaouen is a walking town, and the medina is best explored without a plan. The lanes climb and fall in short flights of steps, and the doors and windows change shade from one street to the next, so the walk itself is the sight. Pause at the craft shops, where the weavers work at wooden looms and the potters shape clay in the open, and buy directly from the makers when you can. Allow a full morning for the walk, and save the afternoon for the hill above the town, where the view puts the blue maze in its setting.
After the medina, the afternoon belongs to the hill above the town. The path climbs steeply from the eastern edge, past the last blue houses and onto the open slope, and the walk takes about half an hour at a steady pace. The reward is the sunset over the rooftops, and the descent afterwards is best done before dark, with a torch if you linger. The spring below the hill is the place to end the day, with a mint tea at one of the small cafes by the water.
The water at Ras El Maa is cold even in summer, and the sound of it running over the stone is the sound of the eastern medina. Women wash clothes on the terraces as they have done for generations, and the old mills, now quiet, stand as a reminder of the days when the spring ground the town’s grain. Sit at a cafe above the water in the late afternoon, when the light is low and the lanes are emptying, and the town feels at its most itself.
The road to Akchour leaves Chefchaouen to the east and climbs through the Rif for about three quarters of an hour, ending at a small trailhead by the river. From there the path follows the water upstream for about an hour, crossing wooden bridges and passing pools where the water runs clear over the rock. The falls themselves are a series of drops through the forest, and the pools below them are the place to swim on a hot day. Go early, when the trail is empty and the light is still low in the trees.
The walk is easy in the dry season and slippery after rain, so good shoes are needed, and the morning is the best time, before the crowds arrive. The falls are the town’s great natural sight, and they show the Rif at its wildest, a contrast to the quiet blue of the medina.
Getting to Chefchaouen is by bus, and the journeys are part of the experience. The bus from Fes takes about four hours through the Rif, with fine views and many places to stop, and the buses run daily, in the morning and the afternoon. The bus from Tangier takes about two and a half hours, and the bus from Tetouan about an hour and a half.
The buses are cheap, and travellers should book in advance, since the buses fill up in the high season. There is no airport or railway in the town, and the nearest airports are at Tangier, about 110 kilometres by road, and at Fes, about 200 kilometres by road. Day trips from Fes and Tangier are possible, with a tour that covers the medina, the Spanish Mosque and the Ras El Maa spring, and returns in the evening, but the town is best seen over two days, with a night in the medina.
Staying in Chefchaouen is easy, and the town’s hotels and guesthouses are among the cheapest in Morocco. The medina has boutique hotels and traditional riads, with rooms that open onto blue courtyards, and the new town has small guesthouses and hotels with views of the mountains. The restaurants serve Moroccan food at low prices, and the cafes of the Uta el-Hammam square are the place to sit in the evening.
The town is safe, and the people are friendly, and the police patrol the tourist areas. Travellers should stay at least one night, to see the town in the early morning and the evening, when the visitors are few and the air is quiet, and two nights allows a day for the Akchour waterfalls as well.
Notable Places in Chefchaouen
The Blue Medina
The blue medina is the heart of Chefchaouen, and it is the place to spend the most time. The medina was built in 1471, and its narrow lanes, steep stairways and blue houses, in shades from pale to deep blue, make it one of the most beautiful old quarters in Morocco. Travellers should allow at least half a day to walk the medina, photographing the blue lanes, visiting the craft shops and looking at the architecture.
The Spanish Mosque
The Spanish Mosque stands on a hill east of Chefchaouen, about thirty minutes on foot from the medina, and it was built in the 1920s, during the Spanish occupation of the town. The mosque has a tall tower, simple architecture and a panoramic view of Chefchaouen and the Rif, at its most beautiful at sunset, when the sunlight falls on the blue rooftops of the medina. Travellers should walk to the Spanish Mosque in the afternoon, and should bring water and good shoes, since the path up the hill is steep and has many steps.
The Ras El Maa Spring
The Ras El Maa spring lies at the eastern edge of the medina, and it is the source of the town’s water. The spring’s clear water flows from the mountains into the town, and it has been the town’s main water source for centuries. The spring has terraces, bridges and old mills, and it is where the local people wash, fetch water and relax, with small cafes along the water.
The Akchour Waterfalls
The Akchour waterfalls lie about 30 kilometres by road to the east of Chefchaouen, and they are among the most beautiful waterfalls in Morocco. The falls have natural pools, where visitors can swim, and walking trails through the forest, with viewpoints and wooden bridges over the stream. Travellers should allow at least half a day for the waterfalls, with good walking shoes, drinking water and swimwear, and should go in the early morning to avoid the crowds.
Uta el-Hammam Square and the Kasbah
Uta el-Hammam Square is the main square of the medina, with the kasbah, the Grand Mosque and the cafes and restaurants around it, and it is the centre of the social life of Chefchaouen. The kasbah, built in the fifteenth century, is a fortress with walls, towers and a courtyard, and it is now a museum with collections on the history and culture of Chefchaouen. Travellers can visit the kasbah, climb its highest tower for a view over the medina, and visit the museum inside.
Frequently Asked Questions
Why are the houses in Chefchaouen painted blue?
The blue probably began with Jewish families who settled here in the fifteenth century, fleeing Spain, and who painted their houses blue as a symbol of the sky and heaven. Other explanations say the colour keeps mosquitoes away and the houses cool, and the true origin is still debated.
Is Chefchaouen a UNESCO World Heritage site?
No, Chefchaouen holds no inscribed property, and the town is famous for its blue architecture and its old medina rather than for a UNESCO listing. The nearest inscribed property is the medina of Tetouan, ref 837, about 46 kilometres away in a straight line.
How do I get to Chefchaouen from Fes?
The bus from Fes takes about four hours through the Rif Mountains, with daily departures in the morning and afternoon. A car takes about three and a half hours, and day tours from Fes cover the medina and the Spanish Mosque before returning in the evening.
Which airport is nearest to Chefchaouen?
Fly to Tangier for the shortest onward journey, about two and a half hours by road. Fes is the alternative airport, with a longer drive of about four hours through the mountains.
Is Chefchaouen safe for visitors?
Chefchaouen is one of the safest towns in Morocco, with violent crime rare against visitors, though pickpockets work in the medina and the crowded areas. At night, visitors should avoid walking alone in empty places and should take official taxis.
Should I visit Chefchaouen in one day or two?
One day is enough for the medina, the Spanish Mosque and the Ras El Maa spring, though the visit will be hurried and will leave no time for the Akchour waterfalls. Two days is ideal, with a slow walk through the medina, a sunset from the Spanish Mosque and a day at the waterfalls.
Verified
- Chefchaouen was founded in 1471 by Moulay Ali Ben Rachid as a fortress against the Portuguese at Ceuta — Wikipedia, checked 19/11/2026. – The nearest inscribed property is the medina of Tetouan, ref 837, 45.6 km away in a straight line; Volubilis, ref 836, lies 124.9 km away — haversine from published coordinates, checked 23/11/2026. – Fes lies 128.6 km away in a straight line, or about 200 km by road; Tangier lies 83.3 km away in a straight line, or about 110 km by road — haversine, checked 23/11/2026. – Ceuta lies 80.2 km away in a straight line to the north, not about 60 km as the Vietnamese article states — haversine from published coordinates, checked 23/11/2026. – The Spanish Mosque was built in the 1920s during the Spanish occupation, which began in 1920 — Wikipedia, checked 19/11/2026. – Chefchaouen holds no UNESCO World Heritage property; the town is absent from Morocco’s inscribed list — UNESCO Morocco states party page, checked 19/11/2026. – Coordinates 35.1687748, -5.2683454 match Wikidata Q676778, whose instance-of values are city and urban commune of Morocco — Wikidata API, checked 23/11/2026. – The registry records unesco: false for TA-L3-chefchaouen, which is CORRECT — the town holds no inscribed property.
Sources
- Wikipedia, Chefchaouen — https://en.wikipedia.org/wiki/Chefchaouen — founded 1471, Berber name, Spanish Mosque, checked 19/11/2026. – UNESCO, Morocco — https://whc.unesco.org/en/statesparties/ma — the inscribed list for Morocco, no property at Chefchaouen, checked 19/11/2026. – Wikidata, Q676778 Chefchaouen — instance-of, coordinates — checked via API 23/11/2026. – UNESCO World Heritage Centre, Medina of Tetouan — https://whc.unesco.org/en/list/837/ — ref 837, checked 23/11/2026.
Unverified
- The exact population of Chefchaouen is uncertain, since sources give figures from 40,000 to 50,000 and the latest census figures have not been fully published. – The true origin of the blue paint is still debated, and the different theories have never been settled by a full historical study. – Bus timetables from Fes and Tangier change with the season, and they have not been checked on the operator’s official site for this article. – Annual visitor numbers for Chefchaouen have not been matched against the official tourism statistics of Morocco.
Illustrations
- Hero: Chefchaouen. Free image: https://upload.wikimedia.org/wikipedia/commons/6/6f/Place-el-haouta-fountain-chefchaouen-morocco.jpg — CC BY-SA 4.0.
- In body, Chefchaouen: Akchour, Chefchaouen. Free image: https://upload.wikimedia.org/wikipedia/commons/3/3b/Akchour%2C_Chefchaouen_2.jpg — CC BY-SA 4.
- In body, Chefchaouen: View of Chefchaouen and the Rif Mountains at sunset, photographed from the Spanish Mosque (Mosque Bouzaafer) overlooking the blue medina, northern Morocco. Free image: https://upload.wikimedia.org/wikipedia/commons/d/d8/Chefchaouen-blue-city-during-thesunset.jpg — CC BY-SA 4.
