In the 19th century, there was a growing desire among German nationalists to unify the German states into a single nation. This desire was fueled by the French Revolution and the rise of Napoleon Bonaparte, who had occupied much of Germany during the Napoleonic Wars. After Napoleon's defeat in 1815, the Congress of Vienna created the German Confederation, which was a loose association of German states.
The German Confederation lasted for nearly 50 years, but it was unable to satisfy the demands of German nationalists. In 1866, Prussia, the most powerful state in the German Confederation, went to war with Austria, the other major power in the confederation. Prussia won the war and, as a result, the German Confederation was dissolved and the North German Confederation was established in its place.
The North German Confederation was a more centralized state than the German Confederation, and it paved the way for the creation of the German Empire. In 1871, Otto von Bismarck, the Chancellor of Prussia, succeeded in uniting the remaining German states into the German Empire. The German Empire was a powerful and influential state that lasted until the end of World War I in 1918.
After World War I, Germany was divided into two countries: East Germany and West Germany. East Germany was a communist state that was part of the Warsaw Pact, while West Germany was a capitalist state that was part of NATO. In 1990, the two Germanys were reunited and the Federal Republic of Germany was created.