The Mosque of the Three Doors, 250m northeast of the Bir Barouta, was founded in AD 866 by Mohammed bin Kairoun el-Maafri, a holy man from the Spanish city of Cordoba. The interior is closed to non-Muslims, but the main feature is the elaborate façade, with its strong Andalusian influences. The mosque's three arched doorways are topped by intricate friezes of Kufic script (two of which name the mosque's founder) interspersed with floral reliefs and crowned with a carved cornice. Well worth a detour.