Hafsid dynasty
The Mosque of the Three Gates was founded in 866. Its façade is a notable example of Islamic architecture. It has three arched doorways surmounted by three inscriptions in Kufic script, interspersed with floral and geometrical reliefs and topped by a carved frieze; the first inscription includes the verses 70–71 in the sura 33 of Quran. The small minaret was added during the restoration works held under the Hafsid dynasty. The prayer hall has a nave and two aisles, divided by arched columns, parallel to the qibla wall.