Discovering...
Discovering...

A 12th-century Almohad ruin in a remote mountain valley — harder to reach than most Morocco highlights, and entirely worth it. Here is everything you need to plan the trip.
Yasmine El Amrani· Marrakech & Atlas Editor
Marrakech-born travel writer who has spent the last decade walking the medina’s souks and the High Atlas trails above Imlil. She covers the Red City, Berber villages and day trips into the mountains. Marrakech · 12+ years covering Morocco
Published 27 September 2024 Last updated 21 February 2026
Tin Mal Mosque is one of only two mosques in Morocco that non-Muslim visitors can enter — and by some distance the more dramatic of the two. It sits in a hidden valley on the southern side of the Tizi n’Test pass, about 100 kilometres from Marrakech as the crow flies and considerably further by the winding mountain road that actually gets you there. The building is a partial ruin, but a beautifully preserved one: horseshoe arches still soar above earthen floors, geometric stucco panels catch the morning light, and the minaret rises intact against a backdrop of terraced Berber gardens and high rock.
Most visitors who make it this far describe the same response: surprise that a place this old, this remote, and this architecturally significant is so rarely crowded. On a midweek morning you may have the entire site to yourself and a friendly guardian. The drive over the Tizi n’Test is itself a reason to come — the road climbs through twenty kilometres of hairpins with views across the Souss plain that are difficult to exaggerate. If you are going to rent a car in Morocco, this is one of the routes that justifies it; if you are not, a private guided day trip from Marrakech handles the mountain driving for you.
Tin Mal is not just a pretty ruin — it is the birthplace of a dynasty that ruled from Marrakech to Lisbon.
In the 1120s a Berber scholar named Ibn Toumert retreated to these mountains after studying in Baghdad and Córdoba. He preached a strict reformist interpretation of Islam and gathered followers — the "Almohads" (al-Muwahhidun, those who affirm the oneness of God) — from the Atlas tribes around him. By 1147 his successor Abd al-Mumin had swept north, toppled the ruling Almoravid dynasty, and made Marrakech the capital of an empire that would eventually stretch across North Africa and into the Iberian Peninsula.
Tin Mal was the movement’s spiritual heartland. Abd al-Mumin built the mosque here in 1156 as a mausoleum for Ibn Toumert and a symbol of dynastic legitimacy. The design — bold T-shaped nave, palm-column arcades, interlaced blind arches on the exterior — was the template for the Koutoubia Mosque in Marrakech, built around the same era by the same dynasty. Stand inside Tin Mal and you are looking at the prototype for one of the most photographed buildings in Africa.
When the Almohad empire declined in the 13th century, Tin Mal was abandoned and slowly succumbed to erosion. Enough survived — around two-thirds of the structure — to make it Morocco’s most intact pre-Marinid mosque. A restoration programme in the 1990s stabilised the main arches; further work has been ongoing following earthquake damage in 2023.

The Tizi n’Test pass road — the route climbs to 2,092 m before descending to the Tin Mal valley.
Key logistics before you commit to the road.
| Distance from Marrakech | ~100 km (via Tizi n'Test pass) |
| Driving time | 2.5–3 hrs each way (mountain road) |
| Road condition | Paved throughout; narrow hairpin sections |
| Entry for non-Muslims | Yes — one of only two mosques in Morocco |
| Entrance fee (indicative) | ~10–20 MAD (unofficial guardian tip) |
| Opening hours | Typically 9 am–5 pm; closed during prayer times |
| Best season | March–May and September–November |
| Nearest town | Ijoukak (~2 km from the mosque) |
Post-2023 earthquake: The September 2023 High Atlas earthquake caused structural damage to parts of the mosque. Restoration has been ongoing. Call ahead or confirm with a local guide that the site is currently accessible before driving the full three hours.
Approximate timings for a private vehicle. Adjust by 30–45 minutes if you prefer to linger at the pass.
7:30 am
An early start means you hit the Tizi n'Test switchbacks in the cool of the morning and have time to linger at the mosque before the midday heat.
8:30 am
The road south passes through Asni, gateway to Jebel Toubkal. The High Atlas begins in earnest here — the valley narrows and the villages turn from pink to grey stone.
9:30–10:30 am
The pass itself offers sweeping views across the Souss plain to the south. A café at the summit sells coffee and msemen flatbread — worth a stop before descending.
10:45 am
The mosque sits in the valley below the pass, visible from the road as a honey-coloured hulk against the green terraces. Allow 45–60 minutes to explore the interior and exterior properly.
12:00 pm
A handful of simple restaurants in the village of Ijoukak serve tagine and omelettes. Alternatively bring a packed lunch and eat beside the Nfis river.
1:30 pm
Most people return via the same Tizi n'Test road. A longer loop via Taroudant and the Tizi n'Tichka is possible but adds 3+ hours — a full day commitment.
4:30–5:00 pm
A comfortable arrival time that leaves the evening free. Traffic entering Marrakech from the south is usually light in this direction.
The Tizi n'Test is paved but narrow, with steep drops and limited barriers on the most dramatic sections. Take it slow, use your horn on blind bends, and pull over for the occasional lorry. In wet or icy conditions the upper section can be treacherous — winter visits need a local weather check first.
The mosque closes during the five daily prayer times. The afternoon closure (Dhuhr) typically falls between 1 pm and 2:30 pm depending on the season. Arriving before midday gives you the best chance of an uninterrupted visit and the warmest light on the stonework.
The guardian tip (indicatively 10–20 MAD per person) is how the site stays accessible. There is no ticket booth or card reader — cash only. Bring more small notes than you think you need; you may want to tip at the café on the pass as well.
If you keep driving south beyond Tin Mal over the pass, the road descends to Taroudant — a walled city often called "the small Marrakech" — in another 90 minutes. A one-way day trip: Marrakech → Tizi n'Test → Tin Mal → Taroudant, returning by the faster P32. A driver needs to be comfortable covering both passes.
Drive from Marrakech
2.5–3 hours
Time at the mosque
45–60 minutes
Ideal months
March–May, Sep–Nov
Yes — Tin Mal is one of only two mosques in Morocco formally open to visitors of all faiths, the other being the Hassan II Mosque in Casablanca. The site is a 12th-century ruin rather than an active place of worship, which is why access is permitted. A local guardian is usually present to let you in and explain the mosque's history. Dress modestly — long trousers or skirts and covered shoulders are expected, and you'll need to remove shoes before entering. Women do not need a headscarf, though many visitors choose to wear one out of respect.
The only practical way is by car or private vehicle. The mosque sits about 100 km south-west of Marrakech via the Tizi n'Test mountain road (P2017). There is no public bus that stops at Tin Mal, and the road is not practical for cyclists on a day trip. The drive takes roughly 2.5 to 3 hours each way on a winding mountain road that climbs to over 2,000 metres. A private guided tour from Marrakech is the most convenient option, as it handles all logistics including the guardian tip and lunch stop — and the driver knows which hairpin bends to slow for.
Tin Mal was founded in 1156 by the Almohad caliph Abd al-Mumin as a mausoleum for Ibn Toumert, the Berber reformer who launched the Almohad movement in these very mountains in the 1120s. The Almohads went on to rule an empire stretching from Marrakech to Lisbon, and Tin Mal was their spiritual heartland. The mosque design — its bold geometric arcades and palm-tree columns — directly influenced the Koutoubia Mosque in Marrakech, built by the same dynasty around the same era. After the Almohad empire collapsed in the 13th century, Tin Mal was gradually abandoned and fell to partial ruin. It was declared a UNESCO World Heritage Site candidate and has undergone partial restoration since the 1990s.
Generally yes. The road to Tin Mal (via Tizi n'Test) is paved throughout and well-maintained, though it is narrow in places and requires attentive driving on the hairpin sections — a confident mountain driver or a knowledgeable guide is strongly advisable. Inside the mosque, the floors are uneven and some arches are structurally fragile, so take care on wet stone and stay within the areas where the guardian directs you. The 2023 earthquake that affected the High Atlas caused some structural damage to the mosque, and restoration work has been ongoing. Check current conditions before visiting if you are planning an independent trip.
Allow 2.5 to 3 hours each way, without rushing. The total round trip covers around 200 km, but the mountain section between Asni and the Tizi n'Test summit involves dozens of tight switchbacks — not a route to hurry. With a couple of viewpoint stops and a 45-minute visit to the mosque plus lunch in Ijoukak, a comfortable day trip from Marrakech takes about 9–10 hours in total. Starting before 8 am is sensible to avoid arriving at the mosque close to its afternoon closing time.
Spring (March to May) and autumn (September to November) are ideal. The High Atlas road is green and the light on the mosque's stonework is warm and photogenic. In summer the Tizi n'Test pass can be hot and dusty, though the altitude moderates the worst of the heat — expect 25–30°C at the mosque in July versus 40°C in Marrakech. In winter (December to February) the pass can receive snow and the road may be closed for short periods; always check locally before attempting a winter visit. Avoid public holiday weekends when Moroccan families use the road for day trips and parking at the site becomes chaotic.
There is no fixed official ticket price. Access is managed by a local guardian who typically requests a tip of around 10–20 MAD (roughly $1–2) per person — indicative figures only, as this is an informal arrangement rather than a set admission charge. The guardian's presence is what makes the visit possible for non-Muslims; he opens the gate, keeps the site, and often gives a brief commentary in French or Darija. Have small dirham notes ready. Larger groups may find expectations sit slightly higher.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete