Bismarck then set about making Prussia the undisputed master of northern Germany, weakening Austria and the German Confederation. This eventually led to a German civil war, the Austro-Prussian War, in which in the Battle of Langensalza (the last battle between Germanic states on German soil) Hanover won a victory, but was so weakened by it, that it could offer no resistance to the occupation by Prussia and ceased to be an independent state. The victory of Prussia and its allies at Königgrätz in July 1866, against Austria and its allies sealed this. The result was the dissolution of the German Confederation, and the creation of the North German Confederation one year later.