Deep in the Nfis gorges, upstream from Ouirgane, stands one of the most important monuments of medieval Morocco. The Tinmel mosque was built in the 12th century in the village where the Almohad movement was born, a dynasty that went on to rule an empire stretching from Al-Andalus to Tunisia. Few visitors make it this far, which is exactly why the journey is so memorable.
This guide covers its history, the effects of the 2023 earthquake and current restoration, how to get there from Marrakech and Ouirgane, and how to visit respectfully.
What is the Tinmel mosque?
The Tinmel (also spelled Tin Mal) mosque is a 12th-century Almohad mosque in the village of Tinmel, in the High Atlas about 100 km south of Marrakech. It was built around 1148 under the caliph Abd al-Mu'min, in honour of Ibn Tumart, the spiritual founder of the Almohad movement, who had made Tinmel his base in the early 12th century. Its architecture, with horseshoe arches, carved stucco and a sober, fortress-like exterior, influenced later Almohad monuments such as the Koutoubia in Marrakech. The site is on Morocco's UNESCO World Heritage tentative list.
Unusually, it was one of the very few historic mosques in Morocco that non-Muslim visitors could enter, as it no longer served as an active place of worship.

A short history of Tinmel
- Early 12th century: Ibn Tumart, a religious reformer from the Souss region, settles in Tinmel and gathers followers among the Masmuda tribes of the High Atlas.
- Around 1130: after Ibn Tumart's death, his disciple Abd al-Mu'min leads the Almohads in their campaign against the Almoravids.
- 1147: the Almohads take Marrakech, which becomes their capital.
- Around 1148: the mosque is built at Tinmel, the movement's spiritual home.
- 13th century onwards: after the decline of the Almohads, Tinmel loses its importance, but the mosque survives in its mountain setting.
- September 2023: the Al Haouz earthquake, whose epicentre was in the nearby mountains, severely damages the mosque.
The 2023 earthquake and restoration
The earthquake of 8 September 2023 struck the region around Ouirgane, Talat N'Yaaqoub and the Nfis valley particularly hard. Many villages were damaged and the Tinmel mosque suffered major structural collapse. Moroccan authorities announced a restoration programme soon afterwards, and work has been under way since. Access to the interior may be restricted or closed depending on the progress of the works, so check the latest situation with your guide before travelling. Even with restrictions, the site and the surrounding village are deeply moving, and visitors contribute to the local economy through guides, cafés and guesthouses.
How to get to Tinmel
| Starting point | Distance (approx.) | Drive time (approx.) | Route |
|---|---|---|---|
| Marrakech | About 100 km | 2 – 2.5 hours | Tahanaout, Asni, Ouirgane, R203 |
| Ouirgane | 30 – 35 km | 40 – 45 min | R203 along the Nfis gorges |
| Imlil | About 65 km | 1h30 | Via Asni and Ouirgane |
| Taroudant | About 120 km | 3 hours | Over the Tizi n'Test pass |
The R203 road is paved but winding. Avoid driving it after dark, and check conditions after storms, when rockfalls can occur.
Tinmel and the Almohad legacy
To understand why a mosque in a remote mountain village matters so much, it helps to look at what the Almohads achieved. From their base in the Nfis valley, they united much of North Africa and Muslim Spain under a single caliphate. Their capital, Marrakech, gained the Koutoubia mosque, the Kasbah and many of the city gates still visible today. In Seville they built the Great Mosque whose minaret survives as the Giralda, and in Rabat they began the Hassan Tower. Tinmel is the beginning of that story: a modest but powerful building where the movement's ideals of simplicity and reform were first expressed in stone.
For travellers who have already visited the Koutoubia, seeing Tinmel completes the picture. The proportions, the arch forms and the restrained decoration echo each other across the mountains and the plain, about 100 km apart.
The Nfis gorges: the journey itself
The drive from Ouirgane to Tinmel is one of the most scenic short routes in the western High Atlas. The road follows the Nfis upstream, between steep slopes of red and grey rock, passing terraced fields, walnut trees and small villages, many of them rebuilt or still rebuilding since 2023. Ijoukak, a village where the valley widens, is a natural stop for tea. Beyond Tinmel, the road continues to climb towards the Tizi n'Test pass, so the mosque can also be a stop on a longer journey to Taroudant.
How to visit Tinmel in 5 steps
- Check access with your guide or with us before setting off, as restoration works may limit entry.
- Base yourself in Ouirgane to cut the drive to under an hour.
- Leave early and enjoy the Nfis gorges in the morning light.
- Visit with a local guide who can explain the history and the reconstruction.
- Have lunch in the valley on the way back, supporting local families.

The architecture: what to look for
From outside, the mosque looks like a fortress, with thick walls and a squat minaret placed unusually above the mihrab, on the qibla wall. Inside, the prayer hall is organised in naves of horseshoe and lobed arches, with a wider central aisle leading to the mihrab. Decoration is restrained, in line with the Almohad emphasis on austerity, but the carved stucco around the mihrab and the muqarnas-style details show great craftsmanship. If interior access is closed, ask your guide to explain these features using the parts visible from outside.
Respectful visiting
- Dress modestly, covering shoulders and knees.
- Follow any barriers or instructions linked to the restoration.
- Ask before photographing residents, especially in homes affected by the earthquake.
- Hire local guides and eat in the valley to support recovery.
- Leave no litter on the riverbanks or the site.
Combining Tinmel with Ouirgane
Tinmel pairs perfectly with a stay in our home valley. Start with our guides to things to do in Ouirgane and day trips from Ouirgane. You can read more on our Ouirgane page, join the Ouirgane day trip from Marrakech or ask us via the contact page to add Tinmel to a private itinerary. For more Atlas ideas, see our Atlas Mountains tours.
Key takeaways
- Tinmel mosque was built around 1148 in the spiritual home of the Almohad dynasty.
- It lies about 100 km from Marrakech and 30 to 35 km from Ouirgane.
- It was badly damaged in the 2023 earthquake; restoration is ongoing and access may be limited.
- Visit with a local guide and support the valley's recovery.




