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 converted the palace into a gunpowder store, leading to its detonation during the siege of 1686. The Christian Hungarian population sharply declined over subsequent decades due to their migration to Habsburg-controlled Royal Hungary; by 1547, the original Christian inhabitants of Buda were around one thousand, and by 1647, this had fallen to about seventy. During Ottoman rule in Buda, there was a significant increase in Jewish and Gypsy immigrants.