Following the Treaty of Utrecht in 1713, Spanish sovereignty over the Southern Netherlands was transferred to the Austrian branch of the House of Habsburg. This event started the era of the Austrian Netherlands. Brussels was captured by France in 1746, during the War of the Austrian Succession, but was handed back to Austria three years later. It remained with Austria until 1795, when the Southern Netherlands were captured and annexed by France, and the city became the capital of the department of the Dyle. The French rule ended in 1815, with the defeat of Napoleon on the battlefield of Waterloo, located south of today's Brussels-Capital Region. With the Congress of Vienna, the Southern Netherlands joined the United Kingdom of the Netherlands, under William I of Orange. The former Dyle department became the province of South Brabant, with Brussels as its capital.