The mosque was founded in 866AD by Mohammed bin Kairoun el-Maafri, a holy man from Cordoba. The present building is 19thC. The mosque is closed to non Muslims but on the tourist itinerary because it has an elaborate facade with three doorways topped by a frieze with kufic (early Arabic) script and flora reliefs. Men used one door, women another and children the third.
Interesting to stop and look at as you walk past on your way to the Great Mosque.
This is the area of the weavers and you can hear the clattering of the looms as they work. It is possible to peep into the workshops and watch the solitary weaver working at his loom.