Original: The federation came into being after Prussia defeated Austria and the other remaining states of the German Confederation in the Austro-Prussian War of 1866.
Simplified: The federation was created after Prussia defeated Austria and the other remaining states of the German Confederation in the Austro-Prussian War of 1866.