Pressburg also played a role in early 19th-century European politics. In 1805, the fourth and best-known Treaty of Pressburg was signed by Austria and France after Napoleon I's victory in the Battle of Austerlitz. Four years later, Napoleon's army besieged and bombarded the city and Napoleon himself visited Pressburg. Dévény Castle was turned into a ruin by the French troops in 1809 and Pressburg Castle was inadvertently destroyed by fire in 1811 (remaining in ruins until the 1950s).