After the decline of the Marinid dynasty, Fes went into a mixed era of decline and occasional prosperity under the Saadians and Alaouites. The Saadians, who used Marrakesh again as their capital, did not lavish much attention on Fes, with the exception of the ornate ablutions pavilions added to the Qarawiyyin Mosque's courtyard during their time.[24] Perhas as a result of persistent tensions with the city's inhabitants, the Saadians built a number of new forts and bastions around the city which appear to have been aimed at keeping control over the local population.