The German Confederation (German: Deutscher Bund) was an 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, which the French Emperor Napoleon I had brought to an end in 1805. Mosthistorians have judged the Confederation to have been weak and ineffective, as well as an obstacle to the creation of a German nation-state. It collapsed due to the rivalry between the Kingdom of Prussia and the Austrian Empire, warfare in the several European revolutions of 1848, and the 1848–1849 German revolution, and the inability of the multiple members to compromise.
In 1848, revolutions by liberals and nationalists were a failed attempt to establish a unified German state with a progressive liberal constitution by the Frankfurt Convention. Talks between the German states failed in 1848, and the Confederation briefly dissolved, but was re-established shortly after, in 1850. It decidedly fell apart only after the Prussian victory in the Seven Weeks' War over Austria (also known as the Austro-Prussian War) of 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 Seven Weeks' War of 1866. This led to the creation of the North German Confederation under Prussian leadership in 1867. A number of South German states remained independent until they joined the North German Confederation, which was renamed and proclaimed as the "German Empire" in 1871 for the now unified Germany with the Prussian king as emperor (Kaiser) after the victory over French Emperor Napoleon III in the Franco-Prussian War of 1870.