The war started when Prussian troops invaded Schleswig-Holstein. The region had been disputed between Prussia and Austria ever since it was taken by them from Denmark. Prussia then invaded Hanover, Saxony, and the Electorate of Hesse on 15 June. Italy declared war on Austria on 20 June.