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. The war resulted in a German victory.