In the Austro-Prussian War of 1866, Austria contested with Prussia the position of leadership among the German states. The Kingdom of Italy seized the opportunity to capture Venetia from Austrian rule and allied itself with Prussia.