In 1689 during the Nine Years' War, Worms (like the nearby towns and cities of Heidelberg, Mannheim, Oppenheim, Speyer and Bingen) was sacked by troops of King Louis XIV of France, though the French only held the city for a few weeks. In 1743 the Treaty of Worms was signed, forming a political alliance between Great Britain, Austria and the Kingdom of Sardinia. In 1792 the city was occupied by troops of the French First Republic during the French Revolutionary Wars. The Bishopric of Worms was secularized in 1801, with the city being annexed into the First French Empire. In 1815 Worms passed to the Grand Duchy of Hesse in accordance with the Congress of Vienna and the city was subsequently administered within Rhenish Hesse.