Nonetheless, the Austrian garrison eventually surrendered, and as a consequence, Luxembourg was annexed by the French Republic, becoming part of the département of Forêts, with Luxembourg City as its préfecture. Under the 1815 Treaty of Paris, which ended the Napoleonic Wars, Luxembourg City was placed under Prussian military control as a part of the German Confederation, although sovereignty passed to the House of Orange-Nassau, in personal union with the United Kingdom of the Netherlands.