Mosque, a vast royal garden to the north known as el-Mosara, residences for government officials, and barracks for military garrisons. Later on, probably in the 15th century, a new Jewish quarter was created on its south side, the first mellah in Morocco, prefiguring the creation of similar districts in other Moroccan cities in later periods. The architectural style under the Marinids was very closely related to that found in the Emirate of Granada, in Spain, under the contemporary Nasrid dynasty. The decoration of the famous Alhambra is thus reminiscent of what was built in Fes at the same time. When Granada was conquered in 1492 by Catholic Spain and the last Muslim realm of al-Andalus came to an end, many of the remaining Spanish Muslims (and Jews) fled to Morocco and North Africa, further increasing the Andalusian influence in these regions in subsequent generations. The Sharifian dynasties: Saadians and Alaouites (16th–19th centuries) After the Marinids came the Saadian dynasty, which marked a political shift from Berber-led empires to sultanates led by Arab sharifian dynasties. Artistically and architecturally, however, there was broad continuity and the Saadians are seen by modern scholars as continuing to refine the existing Moroccan-Moorish style, with some considering the Saadian Tombs in Marrakesh as one of the apogees of this style. Starting with the Saadians, and continuing with the Alaouites (their successors and the reigning monarchy today), Moroccan art and architecture is portrayed by modern (Western) scholars as having remained essentially "conservative"; meaning that it continued to reproduce the existing style with high fidelity but did not introduce major new innovations. The Saadians, especially under the sultans Abdallah al-Ghalib and Ahmad al-Mansur, were extensive builders and benefitted from great economic resources at the height of their power in the late 16th century. In addition to the Saadian Tombs, they also built the Ben Youssef Madrasa and several major mosques in Marrakesh including the Mouassine Mosque and the Bab Doukkala Mosque. These two mosques are notable for being part of larger multi-purpose charitable complexes including several other structures like public fountains, hammams, madrasas, and libraries. This marked a shift from the previous patterns of architectural patronage and may have been influenced by the tradition of building such complexes in Mamluk architecture in Egypt and the külliyes of Ottoman architecture. The Saadians also rebuilt the royal palace complex in the Kasbah of Marrakesh for themselves, where Ahmad al-Mansur constructed