The Spanish Mosque, Chefchaouen

The Spanish Mosque is a small, long-abandoned hilltop building just east of Chefchaouen's medina, prized as the town's finest viewpoint over the blue town in its bowl of mountains. Free, and rewarding year-round; best at sunset. Allow 1.5-2 hours including the walk. Carry a torch for the unlit walk back down after dark.

Perched on a hill just east of the medina, the small, long-abandoned Spanish Mosque is Chefchaouen's finest viewpoint. The building itself is modest and usually closed, but the reason to climb is the panorama: the entire blue town spread below in its bowl of mountains. It is the town's traditional sunset gathering spot and an easy, rewarding short hike.

The walk up

The Spanish Mosque sits on the hillside opposite the medina, reached by a path that begins near the eastern edge of the old town, beyond the Ras el-Maa stream where local women still wash clothes. The climb takes roughly thirty to forty minutes at a steady pace, on a clear but stony track that switchbacks up the slope. It is not a difficult walk, but it is uphill the whole way, so take water, wear shoes with grip and allow extra time in the heat of summer. Along the route you pass cactus, wildflowers and grazing land, with the blue town falling away behind you at every turn. Set off about an hour before sunset to reach the top with time to settle in, and bring a light layer — once the sun drops behind the Rif the air cools quickly even after a warm day.

The view and the building

The mosque was built during the period of Spanish influence in northern Morocco and has stood empty and unused for decades, its whitewashed walls and stubby minaret weathered but intact. You generally cannot go inside, and that hardly matters — the draw is the open ground around it. From here the whole of Chefchaouen lies below in a single frame: the washed-blue medina, the red kasbah, the minaret of the Grande Mosquée and the green valley running off toward the mountains. As the light turns gold and then pink, photographers, backpackers and local families gather on the rocks to watch the sun set behind the ridgeline. It is one of the most reliably beautiful free experiences in Morocco. Bring a torch or use your phone for the descent, as the path is unlit once darkness falls.

Light, seasons and the photographer's window

Because the mosque faces back across the valley toward the medina, the most flattering light falls in the late afternoon, when the low sun rakes across the blue walls and lifts every shade from powder to indigo. Sunset is the headline moment, but arriving forty minutes early rewards you with softer, less crowded conditions and time to find a clear foreground among the rocks. Mornings work too: the town sits in gentle, even light and the path is quiet, though the colours are cooler. Spring and autumn give the kindest temperatures and clearest air, while summer hazes the distance and turns the climb sweaty. Winter can be crisp and beautifully sharp, with snow occasionally dusting the Rif behind the town. A wide lens captures the whole bowl in one frame; a longer one picks out the kasbah and minarets. If you are filming or photographing local families gathered to watch the sunset, ask before pointing a camera at anyone.

Combining the climb with the rest of Chefchaouen

The Spanish Mosque pairs naturally with a slow afternoon in the medina below, so many visitors wander the blue lanes, pause at the kasbah and Plaza Uta el-Hammam, then drift east toward Ras el-Maa as the day cools and begin the climb from there. The stream itself, with its small cascades and waterside cafes, makes a pleasant rest point before or after the walk. If you have more time and energy, the viewpoint sits well within a day that also takes in the Akchour waterfalls in the surrounding Rif, though that is a separate, longer excursion best tackled in the morning. Keep the mosque for the end of the day: descend into the medina afterwards for dinner, when the lanes glow under lamplight and the crowds have thinned. Sturdy shoes carried through the day will serve you for both the cobbled town and the stony hill.

Planning your visit to The Spanish Mosque, Chefchaouen

  • Best time: Best at sunset; go year-round
  • Cost: Free
  • Time needed: 1.5–2 hours including the walk
  • Tip: Leave about an hour before sunset and carry a torch for the unlit walk back down after dark.

How do you get to the Spanish Mosque in Chefchaouen?

It's a walk, not a drive. From the eastern edge of the medina, near the Ras el-Maa stream, a stony path climbs the opposite hillside in about 30 to 40 minutes. It is uphill but not technical — just wear decent shoes and bring water.

Can you go inside the Spanish Mosque?

Usually not — the mosque has been abandoned for decades and is generally kept closed. Visitors come for the open viewpoint around it, which offers the classic panorama over the blue town, especially at sunset.

What is the best time of day to visit the Spanish Mosque?

Late afternoon into sunset is the classic choice, when low light deepens the blue of the medina and families gather on the hilltop. Arriving roughly forty minutes before sunset gives you a calmer spot and time to settle. Mornings are a quieter, cooler alternative with soft, even light over the town.

Is the Spanish Mosque viewpoint crowded at sunset?

It can be busy, as it is the town's traditional sunset gathering spot for visitors and local families alike. The open ground around the mosque is generous enough to spread out, so you will usually find a clear patch of rock. For more solitude, come earlier in the afternoon or visit in the morning instead.

Nearby places

Experiences near The Spanish Mosque, Chefchaouen