Treaty of Vienna
The war ended on 30 October 1864, when the Treaty of Vienna caused Denmark's cession of the Duchies of Schleswig, Holstein, and Saxe-Lauenburg to Prussia and Austria. It was the last victorious conflict of the Austrian Empire/Austria-Hungary in its history.