The war between Denmark and the Germany states was short and decisive and the Danes were defeated in 1864. In the resultant peace treaty, the Danish king renounced his rights to the disputed territories of Schleswig and Holstein to Prussia and Austria respectively.