The German Wars of Unification were orchestrated by Bismarck, chiefly for the benefit of Prussia. But the old Kaiser, Wilhelm I, was really not very interested in the project.
This is well covered in Bismarck and the German Empire by Erich Eyck (1950).