There is evidence that the mosque was also significantly restored in the later Alaouite period (late 17th century and after). The anaza of the mosque's courtyard, for example, is dated to 1678–1679 CE (1089 AH) during the reign of Moulay Isma'il, and some of the mosque's decoration might also date from around this period.[9]