The Historian Guide
Rif Mountains · Morocco

Chefchaouen

A story for every stone

Cover: Allenfleming · CC BY-SA 4.0 · Wikimedia Commons
Introduction

Before you start


Chefchaouen was founded in 1471 as a fortress against the Portuguese, high in the Rif mountains of northern Morocco, and it grew into a refuge for Muslims and Jews driven out of Spain. For centuries it was a closed town, rarely visited by outsiders, and its Andalusian houses, mosques and fountains still crowd the slopes below two mountain peaks. Today it is famous for the blue-washed walls of its old town. This guide enters the medina by the Bab el-Ain, wanders up through the blue lanes to the main square, the Grand Mosque and the Kasbah, climbs to the spring of Ras el-Maa and ends at the Spanish Mosque on the hill above the town.

Each stop below has its voice note built right in — just press play. Everything works offline, so save this page to your phone before you go.

Town map

The town at a glance


Town map of ChefchaouenMap of Chefchaouen with the stops numbered in visit order: from the Bab el-Ain gate up through the blue lanes of the medina to Outa el-Hammam square, the Grand Mosque and the Kasbah, then to the spring of Ras el-Maa and the Spanish Mosque on the hill. Drawn from OpenStreetMap data; not for navigation.Babel-AinBlueLanesOutael-HammamGrandMosqueKasbahRas el-MaaSpanishMosque1234567N00.4 kmSuggested orderof stopsNot turn-by-turn directions© OpenStreetMap contributors⤢ Tap to enlarge
Suggested order of stops · not turn-by-turn directions

Positions are approximate; follow local signs and take care crossing roads on the day. Tap a numbered pin to jump to that stop. Plan drawn by The Historian Guide from OpenStreetMap data, © OpenStreetMap contributors (ODbL).

History

Who built Chefchaouen


In the fifteenth century the Portuguese were seizing ports on the Moroccan coast, beginning with Ceuta in 1415. In 1471 Moulay Ali ibn Rashid, a local leader who claimed descent from the Prophet Muhammad and who had fought against the Christians in Granada, built a fortress here as a base for the holy war against them. After Granada fell to the Catholic kings in 1492, Muslims and Jews expelled from Spain settled in the new town, and they built it in the style of their lost homeland, with whitewashed houses, tiled roofs, courtyards and fountains. Ali ibn Rashid’s daughter, known as Sayyida al-Hurra, later ruled the nearby port of Tetouan. In 1920 the Spanish army occupied Chefchaouen as part of its protectorate in northern Morocco. During the Rif War the town was held for a time by the forces of the Rif leader Abd el-Krim, before Spain retook it in 1926. Chefchaouen became part of independent Morocco in 1956.

The route

Seven stops, in visit order


Stop 1 of 7

The Walls and Bab el-Ain

The gate of the spring

Begin at the Bab el-Ain, the main gate on the western side of the old walled town, or medina. Stretches of the old town walls still climb the hillside around the medina. The walls and their gates were built in the town’s early centuries, to protect the refugees from Spain and the people of the surrounding Jebala tribes who came here to trade. Its name means the gate of the spring. In the past the gates were closed at night, and strangers were rarely allowed inside; until the Spanish arrived in 1920, only a handful of Europeans had ever set foot in the town. Through the gate the streets narrow at once into stepped lanes, climbing towards the heart of the medina. From here, follow the main lane uphill into the blue quarters.

The Walls and Bab el-Ain
Photo: William John Gauthier · CC BY-SA 2.0 · Wikimedia Commons
▶ Listen · The Walls and Bab el-Ain
Stop 2 of 7

The Blue Lanes

An Andalusian town in the mountains

The lanes of the medina wind up the hillside between houses washed in every shade of blue, with doors, steps and window frames to match. Nobody knows for certain why the town is blue. One common explanation is that the custom was brought by Jewish families, for whom blue recalled the sky and heaven; others say that the colour keeps insects away or the houses cool, and much of the painting dates only from the twentieth century. The houses themselves follow the Andalusian pattern brought by the refugees from Granada, built of stone and lime around a central courtyard, often planted with orange and lemon trees, with tiled roofs against the mountain rain. Look out for the old public fountains, the arched passages and the communal ovens where families brought their bread to be baked. These are homes, so be considerate when taking photographs. Continue uphill to the main square.

The Blue Lanes
Photo: Allenfleming · CC BY-SA 4.0 · Wikimedia Commons
▶ Listen · The Blue Lanes
Stop 3 of 7

Outa el-Hammam

The heart of the old town

The lanes open out into the Plaza Outa el-Hammam, the main square of the medina, shaded by trees and lined with cafés. This has been the centre of the town’s life for centuries, where people met, traded and gathered for festivals. Its name refers to the old public bath that once stood near it. Beside the square rise the earthen walls of the Kasbah, and on its southern side the octagonal minaret of the Grand Mosque. Above the town to the east rise the two peaks that give Chefchaouen its name: in the local Berber language, chaouen means horns, and the name is often explained as look at the horns. Pause here to take in the square, then cross to the Grand Mosque.

Outa el-Hammam
Photo: Jerzystrzelecki · CC BY 3.0 · Wikimedia Commons
▶ Listen · Outa el-Hammam
Stop 4 of 7

The Grand Mosque

The town’s first mosque

The Grand Mosque is the oldest mosque in Chefchaouen and its main Friday mosque. It dates from the first years of the town, though historians disagree about exactly when it was founded, and it was restored several times, most recently in 2006. Its most striking feature is its eight-sided minaret, probably built at the end of the seventeenth century, decorated with blind arches in three tiers. As in many mosques in this part of Morocco, the prayer hall is plain inside, roofed with red tiles. Beside the mosque was a school where students learnt religious law. This was also where the governors of Chefchaouen swore loyalty to the sultan, and where his decrees were read out in public. Non-Muslims may not enter, but the minaret can be admired from the square. The Kasbah is next door.

The Grand Mosque
Photo: Belbachirkamal · CC BY-SA 4.0 · Wikimedia Commons
▶ Listen · The Grand Mosque
Stop 5 of 7

The Kasbah

The first fortress

Beside the mosque stands the Kasbah, the fortress with which Chefchaouen began, built in 1471 by its founder, Ali ibn Rashid, to defend the area against Portuguese attacks. It was rebuilt and enlarged by later rulers. Its high walls of rammed earth, with their square towers and battlements, enclose a peaceful Andalusian garden. Inside the gate, the old residence of the governors now houses a small museum of the history and crafts of the region, with weapons, costumes, musical instruments and old photographs of the town, and below are the prison cells. Climb to the top of the main tower for one of the best views over the blue roofs of the medina and down to the minaret of the Grand Mosque. There is a small entrance fee, and opening days vary. From here, follow the lanes uphill to the north-east, to Ras el-Maa.

The Kasbah
Photo: Badr Rachadi · CC BY-SA 4.0 · Wikimedia Commons
▶ Listen · The Kasbah
Stop 6 of 7

Ras el-Maa

The spring at the head of the town

At the eastern edge of the medina, below the mountain, is Ras el-Maa, the head of the water, the spring that is the reason the town was built here. Its cold water pours out of the rock into a stream, and for centuries it supplied the town’s fountains, gardens and mills. Below the spring, women still come to wash clothes in the stone basins, and the stream once turned the wheels of small water mills, some of which survive along its banks. The Bab el-Onsar, another of the medina’s gates, stands nearby. Cross the little bridge over the stream and follow the path that climbs the hillside towards the white building on the hill.

Ras el-Maa
Photo: Badrbina1 · CC BY-SA 4.0 · Wikimedia Commons
▶ Listen · Ras el-Maa
Stop 7 of 7

The Spanish Mosque

A view over the blue town

On the hill east of the town stands a small white mosque with a square minaret, known as the Spanish Mosque. It was built by the Spanish authorities in the 1920s, during the protectorate, for the people of the town, but it is said never to have been used for prayer and was later abandoned. It has since been restored. The climb from Ras el-Maa takes about twenty minutes on a rough path, and from the terrace there is the finest view of Chefchaouen, its blue houses spread out below the Kasbah and the mountains, and the valley beyond. Many people come up at sunset, when the evening call to prayer rises from the mosques below. This is the end of the route.

The Spanish Mosque
Photo: William John Gauthier · CC BY-SA 2.0 · Wikimedia Commons
▶ Listen · The Spanish Mosque
Practical notes

On the day


Chefchaouen lies in the Rif mountains, about two hours by road from Tetouan and three from Tangier and Fes. The medina is steep and stepped, so wear comfortable shoes. Summers are hot by day, while winters can be cold and wet, and snow sometimes falls on the peaks. The town is busiest at weekends and in summer, when many Moroccan families visit. Be respectful in this conservative town: dress modestly, ask before photographing people, and remember that the blue lanes are where people live. Mosques are closed to non-Muslims. During Ramadan, opening hours change and many cafés close during the day.

Plan your visit

Planning a trip to Chefchaouen


The practical bits for your trip, in one place. Each link opens in your browser.

Needs an internet connection. The rest of this guide works offline.

We may earn a small commission if you book through these links, at no extra cost to you.

Photo credits
  1. Stop 1 · The Walls and Bab el-Ain
    William John Gauthier · CC BY-SA 2.0 · Wikimedia Commons · resized
  2. Stop 2 · The Blue Lanes (also the cover)
    Allenfleming · CC BY-SA 4.0 · Wikimedia Commons · resized
  3. Stop 3 · Outa el-Hammam
    Jerzystrzelecki · CC BY 3.0 · Wikimedia Commons · resized
  4. Stop 4 · The Grand Mosque
    Belbachirkamal · CC BY-SA 4.0 · Wikimedia Commons · resized
  5. Stop 5 · The Kasbah
    Badr Rachadi · CC BY-SA 4.0 · Wikimedia Commons · resized
  6. Stop 6 · Ras el-Maa
    Badrbina1 · CC BY-SA 4.0 · Wikimedia Commons · resized
  7. Stop 7 · The Spanish Mosque
    William John Gauthier · CC BY-SA 2.0 · Wikimedia Commons · resized

Photographs from Wikimedia Commons, used under the licences linked above. Each remains under its own licence. “Resized” means the image was reduced for this guide.

The Historian Guide logo

The Historian Guide


Guides to the world’s great historic sites

More guides at thehistorianguide.com