After the decline of the Saadian dynasty the kasbah was severely neglected again, as the Alaouite dynasty that followed them rarely used Marrakesh as their capital. Moulay Isma'il notably plundered the Saadian palaces for materials (such as marble) to use in his own palace and kasbah that he was building in Meknes. The Badi Palace became a ruin, though the Saadian Tombs were still used as royal necropolis for some members of the Alaouite royal family.[1] The main exception to this neglect was the reign of Muhammad ibn Abdallah, who ruled Marrakesh as governor for his father from 1746 and then used it as his unofficial capital when he was sultan between 1757 and 1790.[2][3]