[1] The sultan of Morocco, Moulay Ismail, supported the city's resettlement and commissioned its reconstruction, overseen by its new governor, Ali ibn Abdallah Errifi.
[1] This district had its own walls and included the Kasbah Palace with the governor's residence, a treasury, a courthouse, prisons, stables, residential quarters for the military, a parade ground or mechouar, and the mosque.
[2] In 1921, the official in charge of religious foundations (habous) in the region restored the mosque but covered up much of its original decoration in the process, using new colors.
[3] It has a nearly plain mihrab (niche or arched alcove symbolizing the direction of prayer), and its small rectangular courtyard is not open to the sky but is roofed over.
[2] The doorway, also shaped like a Moorish arch, is decorated with typical radiating geometric motifs whose empty spaces are filled with colorful zellij tilework.