The German people united behind King Wilhelm because

AThe Prussian army defeated all other claimants to the throne
BHe promised them a constitutional monarchy
CHe was the rightful heir to the Holy Roman Empire
DThe wars engineered by Bismarck generated strong nationalist sentiment