Chefchaouen · The hill east of the medina

The Spanish Mosque

No ticket · Time for the climb

The white minaret and brick-fronted prayer hall of the Spanish Mosque on its hilltop above Chefchaouen, with the Rif mountainside behind

The Spanish Mosque at a glance

What it is
Mosque in Chefchaouen
Entry
No ticket
Hours
Check locally; they change in Ramadan
Allow
Time for the climb, a stop at the top and the walk down, and longer if you wait for the sunset.
Built
Most accounts date it to late 1920, built on the orders of the Spanish military commander of the town, Osvaldo Fernando Capaz.
When to go
Late afternoon, so that you watch the light fall on the town and walk down before it is fully dark; early morning is quieter.
From the centre
Leave the medina by Bab el Ansar, the eastern gate near Ras el Maa, and cross the bridge over the stream. The path climbs the hillside opposite to the mosque, about 1 km from the bridge.
Dress
It is a working mosque again. Wear clothes that cover shoulders and knees, keep voices low near the door, and step away from the entrance at prayer times.
Access
An uphill dirt path, uneven in places; it is not suitable for wheelchairs or pushchairs.

The Spanish Mosque stands alone on the hill east of Chefchaouen, a small white building with a square minaret. It dates from the Spanish protectorate years, around 1920, and for most of the century it stood empty. Restored since 2007, it is a mosque in use again today. Visitors climb to it for the view of the whole blue town at the end of the day.

In short

The Spanish Mosque, also called the Bouzafar mosque, is on the hill east of Chefchaouen, about 1 km uphill from the bridge over the Ras el Maa stream. It was built under the Spanish protectorate around 1920 and is used for prayer again. Visitors stay outside; the view west over the town is the reason to walk up.

The visit, stop by stop

The Spanish Mosque in the order you walk it

  1. Bab el Ansar and Ras el Maa

    The walk starts at the top of the medina, at the eastern gate, Bab el Ansar. Just outside it is Ras el Maa, the spring that was the town's first source of water. The spot where the water comes out of the ground is now enclosed in a stone structure, and an old mill stands downstream.

  2. The bridge over the stream

    Cross the stream on the old bridge, possibly from the 19th century, which joins the two banks below the spring. From here the medina is behind you and the open hillside is in front.

  3. The climb

    The path climbs the hillside for about a kilometre, through olive trees and scrub. It is steady rather than steep, but the ground is uneven.

    The small white Spanish Mosque on a bare hilltop east of Chefchaouen, above olive trees and a few blue houses on the slope
  4. The mosque and its terrace

    The mosque is a small, plain building with a whitewashed square minaret and a brick front, different from the other mosques of the town. Visitors stay on the open ground outside, which is where the view is.

  5. The view west over the town

    From the hilltop the whole of Chefchaouen spreads across the slope opposite: the blue and white medina, the red walls of the kasbah near its centre, and the newer town below it. Beside the kasbah on the main square, look for the tower of the Great Mosque, built in 1475-76 and the oldest mosque in the town; its minaret rises from an eight-sided base. Beyond the town the valley opens west towards the farther ridges of the Rif.

  6. Further up, if you have time

    A trail continues uphill from the mosque to another, Lubar al-Fawqi, higher on the mountain. Go on only in daylight, with time to come back down.

Photos in this section: Badr Rachadi (CC BY-SA 4.0), via Wikimedia Commons (photo credits).

Built in the protectorate years, restored as a mosque

The building dates from the period of the Spanish protectorate in northern Morocco. Most of the accounts that the news agency EFE gathered in 2024 place its construction at the end of 1920, on the orders of the Spanish officer then commanding the town, Osvaldo Fernando Capaz. English Wikipedia and Wikivoyage simply say the 1920s.

For decades the townspeople did not use it, and with no upkeep it came close to ruin. Its local name, Bouzafar, has more than one explanation; the one EFE reports ties it to a Spanish engineer with a large moustache who supervised the work.

  • Most accounts date the mosque to the end of 1920, ordered by Osvaldo Fernando Capaz, the Spanish military chief of Chefchaouen; residents boycotted it for decades, it was left abandoned and almost in ruins, and one explanation of the name Bouzafar refers to a moustached Spanish engineer who oversaw the building.

A mosque again

Conservation work began in 2007, and with it a debate about what the building should become: a museum or cultural centre, or a place of prayer. A petition signed by residents helped settle it as a mosque. In 2024 its imam told EFE that all five daily prayers are said there except the Friday noon prayer, because the hall is too small for the Friday congregation. Treat it as the working mosque it is.

The Spanish years in the town below

Spain's protectorate over northern Morocco began in 1912 and ended with independence in 1956, when Spain handed Chefchaouen and most of the north back to Morocco. In 1944 a town plan for Chefchaouen was drawn up with the Spanish architect Pedro Muguruza. As in other towns of the former Spanish zone, part of the population still speaks some Spanish.

Spanish also gave the town its other names. The short form Chauen comes from a Berber word for horns, after the two peaks that stand above the town. Spanish first wrote it Xauen, the X standing for the sh sound in old Spanish spelling, and Chauen has been the more common form since the late 20th century. From the mosque the layout of the valley is also clear: the oldest part of the town climbs the mountain to the Ras el Maa springs at its highest point, and the newer town was built lower down.

  • Spanish Wikipedia dates the Spanish protectorate in Morocco from 1912, says Pedro Muguruza worked on the 1944 town plan of Chefchaouen, notes that part of the population speaks Spanish with limited competence; it derives Chauen from the Berber for horns, after two peaks visible from the town, explains the X of Xauen as the sh sound of medieval Spanish spelling, says Chauen has been more used since the late 20th century, and describes the old town climbing to the Ras al-Ma springs with the new town built lower.
  • Morocco gained independence in 1956, and Chefchaouen and most of the north were ceded by Spain that year.

The path from Ras el Maa

The walk begins where the medina ends, at the top of the town. From Outa el Hammam, climb the lanes east to Bab el Ansar, the eastern gate, and go out to Ras el Maa, the spring. Cross the stream by the bridge and take the path up the hill on the far side. It is about 1 km to the mosque, all uphill, on a dirt path with stone steps in places.

In the morning the sun is behind you as you look at the town, so the light falls on the houses rather than in your eyes.

The view of the blue town at the end of the day

The hill faces west, so at sunset the sun goes down behind the town and the mountains. That is when the crowds come, and the open ground round the mosque can get crowded with people taking photographs. Arrive early for a place to sit, or stay a little lower on the path, where the view is almost the same and there is more room.

Our Chefchaouen solar eclipse 2027 guide covers the eclipse and where to watch it from.

  • The Spanish Mosque is a popular sunset viewpoint and can get crowded with photographers at sunset.

Shoes, water and walking back in the dark

Wear shoes with grip, because the path is uneven and can be muddy after rain. Carry water for the climb, and a light layer for the evening on the hilltop.

If you stay for the sunset, carry a phone torch for the way down and walk back with other people rather than alone. In winter the rain makes the path slippery; on a wet day, take the kasbah tower view in the medina instead. Our northern Morocco tour arrives by mid-afternoon, in time for the walk, and we can time the Tangier to Chefchaouen transfer the same way.

Look closer

What to notice inside the The Spanish Mosque

  1. The square minaret

    It is plain and whitewashed, with small arched openings, a different form from the octagonal minaret of the Great Mosque in the medina below.

  2. Lubar al-Fawqi

    The second, smaller mosque higher up the mountain, reached by the trail that continues past the Spanish Mosque.

  3. The kasbah from above

    Find the red rammed-earth rectangle of the kasbah among the blue houses; it marks Outa el Hammam, the centre of the medina.

Walk on

Pair the The Spanish Mosque with these, in this order

  1. 1

    The Spanish Mosque

    You are here. Start at opening time.

  2. 2

    One day in Chefchaouen

    Our day plan, which ends with this walk from Ras el Maa, the spring just outside the eastern gate.

  3. 3

    The blue streets

    The upper lanes of the medina lead down from Bab el Ansar towards Outa el Hammam; walk them on the way back.

  4. 4

    The kasbah

    The fort of 1471 on the main square, whose tower gives the near view to match the wide one from the hill.

More in Chefchaouen, and routes through it

Sources, dates checked and photo credits

Sources

  1. planoinformativo.com checked 3 Dec 2026
  2. Wikipedia, Chauen checked 3 Dec 2026
  3. Wikipedia, Chefchaouen checked 3 Dec 2026
  4. Lonely Planet checked 3 Dec 2026
  5. Wikivoyage checked 3 Dec 2026

Drive times come from our route planner, door to door by private car without stops. Each source shows the date we last checked the facts on this page against it.

Photos: The white minaret and brick-fronted prayer hall of the Spanish Mosque on its hilltop above Chefchaouen: Robert Prazeres, CC BY-SA 4.0; The small white Spanish Mosque on a bare hilltop east of Chefchaouen: Badr Rachadi, CC BY-SA 4.0, via Wikimedia Commons (photo credits).

Questions

The Spanish Mosque: questions before you go

How long is the walk up to the Spanish Mosque in Chefchaouen?
About 1 km uphill from the bridge over the Ras el Maa stream, just outside the eastern gate of the medina. Allow time to stop and look back on the way.
Can you go inside the Spanish Mosque?
It is used for daily prayer again, so treat it as a working mosque: non-Muslim visitors stay outside, where the view is.
Why is it called the Spanish Mosque?
It was built by the Spanish around 1920, during the protectorate. Locally it is also called the Bouzafar mosque.
Is the Spanish Mosque walk safe after sunset?
Go down with a light and with other people rather than alone, because the path is uneven. On a wet day, choose another viewpoint.

Ask for a quote

Plan a night in Chefchaouen with us

Tell us your dates and route. We time the drive so you arrive for the walk to the Spanish Mosque, book the riad and send one quote.

Your trip
Where should we reply?

Free, no obligation. A planner replies within one working day, usually sooner.

What happens next

  1. Send your dates and your group.A month, a rough route and a head count are enough to start.
  2. Get a day-by-day plan and one quote.Drive times, where you sleep, the vehicle and what is included, for your group only.
  3. Change it, or confirm it.Nothing is booked or charged until you say yes.
  • A planner on our US desk or our team in Morocco writes back, depending on the hour you send.
  • If your number is on WhatsApp, the reply comes there. If not, by phone or email.
  • Your details go only to the operator named at the foot of this page.
Get a quote WhatsApp