Prussia
with France in 1870 (Franco-Prussian War) - so Bismarck could control Mecklenburg, Bavaria, Baden, Württemberg, and Saxony.  After this, these states (but not Austria) became part of a united German Empire, and Wilhelm I took the title of Emperor (Kaiser).