The German Confederation (German: Deutscher Bund) was a loose association of 39 German states in Central Europe, created by the Congress of Vienna in 1815 to coordinate the economies of separate German-speaking countries and to replace the former Holy Roman Empire. The German Confederation existed from 1815-1866. Eventually, it collapsed due to the rivalry between Prussia and Austria, warfare, the 1848 revolution as well as the inability of the multiple members to compromise. It dissolved after the Prussian victory in the Seven Weeks' War and the establishment of the North German Confederation in 1866.
The dispute between the two dominant member states of the confederation, Austria and Prussia, over which had the inherent right to rule German lands ended in favour of Prussia after the Austro-Prussian War in 1866, and the collapse of the confederation. This resulted in the creation of the North German Confederation, with a number of south German states remaining independent, although allied first with Austria (until 1867) and subsequently with Prussia (until 1871), after which they became a part of the new German Empire.