Discovering...
Discovering...

The single best view of Chefchaouen is not from the blue lanes but above them, at the Spanish Mosque on the hillside east of the medina. This short, free hike, past the Ras el-Maa waterfall and up a rocky path, delivers the classic sunset panorama over the tumbling blue town and the Rif peaks. Here is how to do it, and when.
The viewpoint
The Spanish Mosque (Mosquee Bouzafer), on a hill east of the medina
Built
By the Spanish in the colonial era (1920s); disused, now a lookout
Walk time
Roughly 30-45 minutes uphill from the medina
Difficulty
Moderate; a rocky path and steps, some steady climbing
Cost
Free; no ticket to reach the viewpoint
On the way
Ras el-Maa waterfall and washing spot
Best time
Late afternoon for sunset; start ~90 min before
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 2 February 2025 Last updated 15 July 2026
Chefchaouen is beautiful from within, but it is from above that the Blue City reveals itself whole: a cascade of blue-washed houses spilling down the mountainside, hemmed by the grey-green peaks of the Rif. The best vantage point is the Spanish Mosque, a small, plain building on a bare hill directly east of the medina, and reaching it is the town's signature short hike. There is no better way to understand the town's setting, or to get the postcard photograph everyone comes home with.
The mosque itself is modest, a whitewashed structure with a stubby minaret, built by the Spanish during the colonial protectorate in the 1920s and never really brought into regular use. Today it stands empty and is valued almost entirely for the view from its terrace. The walk up is free, needs no guide, and can be done by anyone reasonably mobile, which makes it one of the most rewarding things to do in Chefchaouen and a fixture of most visitors' first evening.
The trail starts at the eastern edge of the old town. Walk down through the medina toward its lower, northeastern corner and the town gate near the river, where the Ras el-Maa stream tumbles out of the mountainside. From here a clear path crosses the water and climbs the open hillside opposite in a series of switchbacks and rough steps, always with the mosque visible on the ridge ahead as your target. You cannot really get lost: keep climbing toward the building and you will arrive.
The surface is dirt, rock and uneven stone steps rather than a paved way, so wear proper shoes rather than sandals, and take it steadily on the steeper pitches. The full climb takes most people around thirty to forty-five minutes depending on pace and how often you stop for photographs, and there is little shade, so the middle of a hot day is the one time to avoid. Local children and the occasional vendor may offer to guide you, but the path needs no guiding.
The walk has a worthwhile stop built in. At the foot of the climb, where the medina meets the mountain, the Ras el-Maa (Arabic for 'head of the water') is the spring and small cascade that has supplied Chefchaouen for centuries. Water rushes down a rocky channel, and local women still come here to wash clothes and rugs in the fast-flowing stream, a scene of everyday life rather than a staged attraction. A couple of simple cafes perch beside the falls, perfect for a mint tea before or after the ascent.
It is a pleasant, shaded spot to pause and cool down, and the sound of the water is a welcome contrast to the dry hillside above. Photographers should be discreet and respectful of the people working there. Combining the waterfall with the mosque hike makes the outing feel like a proper little excursion rather than just a viewpoint dash, and the cafes make a natural place to regroup for the walk back down after sunset.
The reason most people climb is the sunset, and the timing rewards a little planning. As the sun drops behind the hills to the west, it lights the blue town and the whitewashed walls in warm gold, and the whole medina seems to glow beneath you before the shadows climb the valley. Aim to be on the mosque's terrace at least twenty minutes before the sun actually sets, which, allowing for the climb, means leaving the medina roughly ninety minutes ahead.
You will not be alone, this is the town's best-known sunset spot, and a friendly crowd of travellers gathers on the hillside each clear evening, but there is room to spread out along the ridge for your own patch. Bring a layer, as the Rif air cools quickly once the sun is down at Chefchaouen's 600-metre altitude, and a torch or phone light for the descent, since the rocky path is harder to read in the dark. Take your time coming down and watch your footing.
| Detail | Guidance |
|---|---|
| When to start | Roughly 90 minutes before sunset |
| Walk up | About 30-45 minutes, moderate |
| What to wear | Proper shoes; a warm layer for after dark |
| To bring | Water, torch/phone light, camera |
| Cost | Free; no ticket required |
For photographers, the golden hour before sunset is the prize, when low, warm light rakes across the blue walls and separates the layers of the medina from the peaks behind. The terrace and the ridge either side of the mosque give slightly different framings, so it is worth arriving early to scout your spot before the crowd settles. A wide shot captures the town spilling down the slope; a longer lens picks out individual blue rooftops and the octagonal minaret of the Grande Mosquee in the square below.
The view is good at other times too. Sunrise is quieter and lights the town from the opposite side, and a clear midday gives the crispest detail if you can bear the heat and the flat light. Whenever you go, the effort-to-reward ratio is excellent: half an hour of climbing for one of the finest urban panoramas in Morocco, entirely free. It pairs perfectly with a rooftop dinner afterward from the Chefchaouen restaurants and food guide.
The mosque hike slots neatly into a broader day in the Blue City. Spend the morning wandering and shopping the blue lanes, break for lunch, and save the climb for the late afternoon so it culminates in the sunset. If you have more energy, Chefchaouen is a springboard for serious Rif walking: the celebrated Akchour waterfalls hike and the trails of Talassemtane National Park are both within easy reach and make a fuller day on the mountain.
Round out your time in town with the crafts, the blue-lane shopping is a highlight in its own right, covered in the Chefchaouen shopping and crafts guide. And because the town sits on the northern loop, it pairs well with the coast and the imperial north; the seafood tables of Tetouan are within a couple of hours if you are moving on. However you arrange it, put the Spanish Mosque at sunset near the top of the list; it is the view that fixes Chefchaouen in the memory.
The walk takes most people around thirty to forty-five minutes uphill from the medina, depending on pace and photo stops. It starts at the old town's lower northeastern corner, crosses the Ras el-Maa stream and climbs a rocky, stepped path up the open hillside opposite, with the mosque visible ahead the whole way. It is moderate rather than hard, but wear proper shoes and carry water.
It is moderate. The path is dirt, rock and uneven stone steps rather than a paved way, and there is steady climbing with little shade, so it will get your heart going, but anyone reasonably mobile can manage it at their own pace. Wear real shoes rather than sandals, take the steeper sections slowly, and bring water. The one time to avoid is the heat of the middle of the day.
No. Reaching the Spanish Mosque and its terrace is completely free, with no ticket required. The mosque itself is disused and valued almost entirely for the view, which is one of the best in Morocco. Local children or vendors may offer to guide you, but the path needs no guide, you simply keep climbing toward the building on the ridge.
Late afternoon, timed for sunset, is the classic choice: the low sun turns the blue town and white walls warm gold. Aim to be on the terrace at least twenty minutes before the sun sets, which means leaving the medina roughly ninety minutes ahead. Bring a warm layer for after dark and a torch for the descent. Sunrise is a quieter alternative that lights the town from the other side.
Ras el-Maa, meaning 'head of the water', is the spring and small waterfall at the foot of the Spanish Mosque climb, where the medina meets the mountain. It has supplied the town for centuries, and local women still wash clothes and rugs in the fast stream. A couple of simple cafes sit beside the falls, making it a pleasant, shaded stop for mint tea on the way up or down. Photograph respectfully.
The Spanish Mosque gives the definitive panorama, but it is only a thirty-to-forty-five-minute climb, short by hiking standards. If you cannot manage even that, the higher rooftop terraces of restaurants and guesthouses around Plaza Uta el-Hammam offer fine views over the blue rooftops with no climb at all. For the full sweep of town against the Rif peaks, though, the mosque hillside is worth the modest effort.
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
Food & Dining
Where to eat in the Blue City — rooftop terraces over the medina, Rif mountain goat cheese, and the best cafés on Plaza Uta el-Hammam.
Read guideAttractions & Heritage
Shopping the Blue City: hand-woven wool blankets, goat cheese and honey, natural pigments and Rif basketry, with fair prices.
Read guideMountains & Trekking
The Rif’s best day hike from Chefchaouen — turquoise pools, the big waterfall and the natural arch of God’s Bridge.
Read guideMountains & Trekking
The green north beyond Chefchaouen — cedar and fir forests, hiking trails and the wild heart of the Rif.
Read guideFood & Dining
Andalusian-influenced cooking in the whitewashed medina — where to eat in northern Morocco’s most Spanish-flavoured city.
Read guide