In 1858, Sardinia and France secretly plotted a plan of attack against Austria. The following year, Sardinia put its plan into action. Instead of attacking, Sardinia encouraged nationalist revolts in th Austrian-held territories in Italy to provoke Austria into starting the war. Following the Battles of Magenta and Solferino, France drove Austria out of Lombardy, but Austria still held onto Venetia.