The various different possibilities for a united Germany were: a Greater Germany, or a Greater Austria or just the German Confederation without Austria at all. As Austria was not willing to relinquish its German-speaking territories to what would become the German Empire of 1848, the crown of the newly formed empire was offered to the Prussian King Friedrich Wilhelm IV. In 1864, Austria and Prussia fought together against Denmark and secured the independence from Denmark of the duchies of Schleswig and Holstein. As they could not agree on how the two duchies should be administered, though, they fought the Austro-Prussian War in 1866. Defeated by Prussia in the Battle of Königgrätz, Austria had to leave the German Confederation and no longer took part in German politics.