The Citadella was built after the 1848–49 Hungarian uprising by the ruling Habsburgs, as it was a prime, strategic site for shelling both Buda and Pest in the event of a future revolt.