The only time that the fortress actually came under siege was during the German Peasants' War in 1525, when a group of miners, farmers and townspeople tried to oust Prince-Archbishop Matthäus Lang, but failed to take the fortress. In 1617 the deposed Archbishop Wolf Dietrich von Raitenau died in the fortress prison. During the Thirty Years' War, Archbishop Count Paris of Lodron strengthened the town's defenses, including Hohensalzburg. He added various parts to the fortress, such as the gunpowder stores and additional gatehouses. The fortress was surrendered without a fight to French troops under General Jean Victor Marie Moreau during the Napoleonic War of the Second Coalition in 1800 and the last Prince-Archbishop Count Hieronymus von Colloredo fled to Vienna. In the 19th century, it was used as barracks, storage depot and dungeon before being abandoned as a military outpost in 1861.