Chefchaouen · Outa el Hammam square

The kasbah of Chefchaouen

Ticket paid at the gate · About an hour for the garden

The red rammed-earth walls and crenellated towers of the Chefchaouen kasbah, with its arched entrance and trees inside the enclosure

The kasbah of Chefchaouen at a glance

What it is
Kasbah in Chefchaouen
Entry
Ticket paid at the gate
Hours
Check locally; they change in Ramadan
Allow
About an hour for the garden, the museum rooms and the tower.
Built
Founded in 1471 by Ali ibn Rashid al-Alami as a small fortress to defend the region against the Portuguese; the town of Chefchaouen grew around it.
When to go
Early in the day, before the main square fills; the walls take the late-afternoon light from the square side.
From the centre
The entrance faces Outa el Hammam, the main square of the medina. From Bab el Ain on the west side, follow the main lane uphill and east into the square; the kasbah walls fill its west side, with the Great Mosque beside them.
Dress
Ordinary covering clothes; it is a museum, not a place of prayer.
Access
The garden is at the level of the square. The museum is on the ground floor of the house; the tower has upper floors reached by stairs.

The kasbah is where Chefchaouen began. Ali ibn Rashid built it in 1471 as a small fortress against Portuguese raids, and the town grew round it. Its red rammed-earth walls stand on the main square, Outa el Hammam, next to the Great Mosque. Inside are a garden, a small museum and a tower with a view over the blue roofs.

In short

The Chefchaouen kasbah is the walled fort of 1471 on Outa el Hammam, the main square of the medina. Inside are a garden courtyard, an ethnographic and archaeological museum in a late 17th-century house, and an early 16th-century tower. Tickets are sold at the gate; check the opening hours locally before you go.

The visit, stop by stop

The kasbah of Chefchaouen in the order you walk it

  1. The entrance from the square

    You enter from Outa el Hammam through an opening cut in the 1930s. The kasbah had two original gates, one facing the square and markets and one near the Great Mosque, both later closed or put to other uses. The old gate towards the market is low and narrow and turns a corner, a defensive design.

  2. The garden courtyard

    The interior of the enclosure is a garden, laid out where the fort's courtyard was. It is planted with trees and crossed by paths, and the walls and towers rise round it on every side. Old cisterns found on the site probably go back to the first building and to the years when the kasbah was a residence.

  3. The museum in the governor's house

    In the north-east corner stands a historic house, probably built in the late 17th century under Moulay Ismail by the local governor, Ali Errifi. Its ground floor holds the museum, with archaeological objects and ethnography of the region. An ethnographic museum was installed here in 1985, and a centre for Andalusian studies uses the same old palace area.

  4. The rooms of the main tower

    The tallest tower stands on the west side. Unlike the ten rammed-earth towers on the walls, it is built of rubble masonry with cut stone at the corners, and it probably dates from the early 16th century under Moulay Muhammad, a son of the founder. Its ground-floor room is covered by small brick domes rising from a central octagonal pillar, and two rooms fill the floor above.

    A crenellated rammed-earth tower of the Chefchaouen kasbah in low sun, with tall eucalyptus trees behind
  5. The terrace on top

    The top level of the main tower is a terrace behind a crenellated parapet. From there you look down on Outa el Hammam, the octagonal minaret of the Great Mosque and the blue houses climbing towards the mountain. Check at the gate whether the tower is open on the day.

Photos in this section: yeowatzup (CC BY 2.0), via Wikimedia Commons (photo credits).

The fort on Outa el Hammam

In 1471, the year the Portuguese took Tangier and Asilah, a local sharif, Ali ibn Rashid al-Alami, built a fortified post in the hills to defend his home region. He was a descendant of the saint Abd al-Salam ibn Mashish, whose shrine stands in the mountains north-west of the town. Muslims and Jews from al-Andalus, expelled after the Christian conquest of Granada in 1492, settled round the fort. The medina of Chefchaouen grew south and west of it, inside walls with several gates, and the fort became the seat of a local principality.

The square in front of the gate, Outa el Hammam, was probably laid out by Ali ibn Rashid's son, Moulay Muhammad, in the 16th century. The kasbah and the Great Mosque stand side by side on it, as they have since the town's first century.

  • Ali ibn Rashid founded Chefchaouen in 1471 as a small kasbah built to defend against Portuguese incursions in northern Morocco.
  • The Portuguese took Tangier and Asilah in 1471; Andalusian Muslims and Jews expelled after 1492 settled in the new town.

Inside the kasbah

The visit is short and walks you through three things: a garden, a museum and a tower. Each one belongs to a different period of the building.

The garden

The garden fills the inner courtyard. Wikivoyage describes the courtyard as green and almost alien amid the mountain setting, and lists what the enclosure once held round it: stables for horses, a jail, the ruler's own house with a little private mosque, and the towers on the walls.

The ethnographic museum

The museum is small. It occupies the ground floor of the old governor's house and shows archaeological finds from the region and objects of Rif culture, both domestic and military.

The tower and the view

The main tower is the oldest part that looks like a residence rather than a wall. Its three levels end in a terrace behind merlons, a viewpoint over the square and the roofs of the old town. It is the nearest view in the medina. The Spanish Mosque on the hill to the east gives the wide view of the whole town.

An explorer's view of 1883

Chefchaouen stayed closed to Christian visitors for centuries. In July 1883 the French explorer Charles de Foucauld reached it and wrote one of the first European descriptions of the town and its surroundings. What struck him was the old keep with the look of a feudal castle, the houses roofed with tiles, and the streams winding through the town on every side; he wrote that it seemed more like a quiet village on the banks of the Rhine than a Moroccan town. He put the population at three to four thousand people, among them about ten Jewish families.

  • In July 1883 Charles de Foucauld became the first European to describe Chefchaouen, praising its old keep of feudal appearance, tiled houses and winding streams, which made him think of a peaceful town on the Rhine; he counted three to four thousand inhabitants, including about ten Jewish families; the town had been closed to Christians until he defied the ban in 1883.
  • Wikivoyage says the kasbah held a garden, a jail, stables, the ruler's house and a little private mosque for him, towers and a green courtyard almost alien amidst the mountain setting.

The Great Mosque beside the walls

The Great Mosque of Chefchaouen stands against the kasbah on the same square. It is the oldest mosque in the town and historically the most important, and it was enlarged in the 17th century. Its building is plain outside except for the octagonal minaret, which shows clearly from the kasbah garden and the tower terrace. Besides prayer, the mosque was a place of teaching in religious and other sciences. It is open to Muslims only, so visitors see it from the square and from the kasbah.

  • The Great Mosque, on Outa el Hammam next to the kasbah, is the oldest and historically most important mosque of Chefchaouen.
  • The Great Mosque was enlarged in the 17th century; its building is undecorated apart from its octagonal minaret.

Visiting: tickets at the gate, hours to check

Tickets are sold at the gate on the square; we do not quote the fee, which is set locally. Opening hours can change in Ramadan and on public holidays, so check locally on the day. The ministry of culture began a renovation campaign at the kasbah in 2023, so parts of it may be closed for work.

The kasbah fits at the start of any walk in the medina, because every lane in the centre leads back to Outa el Hammam. Go early, when the square is quiet, and then climb the lanes east towards Ras el Maa. Arrive the afternoon before: our northern Morocco tour does, and we can time the Fes to Chefchaouen transfer the same way.

  • In 2023 the ministry of culture began a renovation campaign at the kasbah.

Look closer

What to notice inside the The kasbah of Chefchaouen

  1. Rammed-earth walls

    The walls and ten of the towers are built of pisé, earth packed into wooden frames, which is why they are red-brown in a town of blue and white.

  2. A different kind of tower

    Compare the stone corners of the main tower with the earth towers. Historians compare it with the tower-residences of Nasrid Granada.

  3. The size of the fort

    The whole enclosure measures about 72 by 52 metres, small for a kasbah, because it began as a local fort before the town existed.

  4. The rooms that were a prison

    Over the centuries the kasbah was a governor's residence, an arsenal and a prison, and the old prison rooms are part of the visit.

Walk on

Pair the The kasbah of Chefchaouen with these, in this order

  1. 1

    The kasbah of Chefchaouen

    You are here. Start at opening time.

  2. 2

    Outa el Hammam and the rest of the town

    The square in front of the gate, with the Great Mosque, the old caravanserai and a four-sided fountain at its centre. The square was probably laid out in the 16th century.

  3. 3

    The blue streets

    The Souika quarter, one of the oldest in the town, lies south-west of the kasbah, and the upper lanes climb east towards Ras el Maa.

  4. 4

    Ras el Maa and the Spanish Mosque

    The spring that first supplied the town lies just east of the medina, uphill from the square; the path to the Spanish Mosque starts there.

More in Chefchaouen, and routes through it

Sources, dates checked and photo credits

Sources

  1. Wikipedia, Chefchaouen checked 3 Dec 2026
  2. Wikidata checked 3 Dec 2026
  3. French Wikipedia, Kasbah de Chefchaouen checked 3 Dec 2026
  4. French Wikipedia, Chefchaouen 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 red rammed-earth walls and crenellated towers of the Chefchaouen kasbah: Zaineb Hachami, CC BY-SA 4.0; A crenellated rammed-earth tower of the Chefchaouen kasbah in low sun: yeowatzup, CC BY 2.0, via Wikimedia Commons (photo credits).

Questions

The kasbah of Chefchaouen: questions before you go

Is the Chefchaouen kasbah worth visiting?
For the garden, the tower view over the square and the story of the town's founding, yes, and it takes about an hour. The museum itself is small.
What is in the Chefchaouen kasbah museum?
Archaeological finds and ethnographic collections of the region, shown on the ground floor of a late 17th-century governor's house in the north-east corner of the fort.
Who built the kasbah of Chefchaouen?
Ali ibn Rashid al-Alami, in 1471, as a fortress against the Portuguese. The main tower was added in the early 16th century, probably by his son Moulay Muhammad.
Can you climb the tower of the Chefchaouen kasbah?
The main tower has a terrace on its top level with a view over Outa el Hammam. Ask at the gate whether it is open the day you visit.

Ask for a quote

Plan your time in Chefchaouen with us

Tell us your dates and who is travelling. We plan the drive, the nights and a medina walk that starts at the kasbah, 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