The Saadians established themselves in the old Almohad kasbah and undertook their own renovations and reconstructions. Sultan Moulay Abdallah al-Ghalib constructed new palaces and annexes in the northern part of the kasbah and repaired the Kasbah Mosque after it was damaged in a gunpowder explosion in the 1560s or 1570s.[9] He also built the first structures of the Saadian Tombs on the south side of the mosque. Finally, it was he who transferred the Jewish population of the city to a new Mellah on the east side of the Royal Palace, which expanded the eastern outline of the kasbah.[2][9]