Built in the early IXth century,
remodelled and extended during the Xth and XVIIth
centuries, it is adjacent to the Ribat, from which
it has inherited the fortified aspect with a crenellated
surrounding wall flanked by two watchtowers facing
the shore, from where assailants from overseas
could have appeared.
A small door leads into the building and gives
into a vast courtyard surrounded by porticos with
arcades dating to the XVIIth century. The prayer
room, as vast as the courtyard, is surmounted
by two cupolas with shells; its roofing is supported
by masonry pillars and its mihrab oriented towards
Mecca, is richly decorated.