The principal mosque of the medina, dating in its present form from the late eighteenth century during the reign of the Alaouite sultan Sidi Mohammed ben Abdallah. The square minaret, with bands of green tile, is the most visible landmark in the old city and rises just north of the central market.
As in all working mosques in Morocco, non-Muslims may not enter. But the mosque's facade, the carved cedar doors, and the surrounding lanes — busy with sellers of incense, prayer beads, and dried fruit — are well worth a walk past.