The Ottomans later transformed the palace into a gunpowder store and magazine, which caused its detonation during the siege in 1686. The Christian Hungarian population significantly shrank in the next decades, due to them fleeing to the Habsburg-ruled Royal Hungary, especially by 1547 the number of the original Christian population of Buda was down to about a thousand, and by 1647 it had fallen to only about seventy. The number of Jewish and Gypsy immigrants became dominant during the Ottoman rule in Buda.
The Ottomans later converted the palace into a gunpowder depot, leading to its explosion during the siege in 1686. The Christian Hungarian populace drastically decreased over the following decades, as they fled to Habsburg-controlled Royal Hungary, particularly by 1547, the original Christian population of Buda had dwindled to around one thousand, and by 1647 it was reduced to approximately seventy. During Ottoman rule in Buda, the number of Jewish and Gypsy immigrants grew significantly.