The Tin Mal Mosque is a mosque located in the High Atlas mountains of North Africa. It was built in 1156 to commemorate the founder of the Almohad dynasty, Mohamed Ibn Tumart. It is one of the two mosques inMorocco open to non-Muslims, the other being the Hassan II Mosque in Casablanca. The prototype for the Tin Mal mosque was the Great Mosque of Taza (near Fès), also built by Abd al-Mu'min. The Koutoubia in Marrakechwas in its turn modelled on it.