In 1858, he signed a treaty of alliance between the Kingdom of Sardinia and the French Empire against the Austrian Empire. The next year, the Second Italian War of Independence, the Piedmontese and the French defeated the Austrians, who then controlled Italy.