Tin Mal Mosque sits about an hour's drive south of Ouirgane along the road to Tizi n'Test, in the village of Tinmel. It was built in 1156 to commemorate Ibn Tumart, the religious scholar who founded the Almohad dynasty and launched his reform movement from this remote valley. When the Almohads went on to conquer most of North Africa and Andalusia, they brought the architectural ideas worked out here with them — the Koutoubia mosque in Marrakech was modelled directly on Tin Mal.
The building is a genuine ruin today, battered by the 2023 Al Haouz earthquake and earlier by centuries of neglect, but it is still an extraordinary thing to stand inside. The horseshoe arches, the dense grid of columns, and the mihrab all survive. UNESCO has it on the Tentative World Heritage List. Visiting is straightforward: the site is open during the day and a caretaker is usually present. Non-Muslim visitors are welcome. Combine the trip with the dramatic Tizi n'Test pass drive — the road beyond the mosque climbs through hairpin bends to over 2,000 metres before dropping to Taroudant and the Souss Valley.