In 1862, Bismarck reorganized the Prussian army and improved training in preparation for war. In 1864, he constructed an alliance with Austria to fight Denmark over Denmark's southern provinces of Schleiswig and Holstein. Prussia received Schleiswig while Austria administered Holstein. That situation, however, could not stand for long, as Austrian Holstein was now surrounded by Prussian lands. Bismarck provoked a conflict with Austria over an unrelated border dispute and in the subsequent Seven Weeks' War--named for its brevity--Prussia crushed the collapsing Austrian army. The peace settlement transferred Holstein to Prussia and forced Austria to officially remove itself from all German affairs.