 Milan fell to the Austrian army on September 26, 1706 during the War of the Spanish Succession.The Austrian rule was confirmed by the Treaty of Rastatt.The Austrians abandoned Milan after the Battle of Marengo and the duchy was incorporated again in the Cisalpine Republic, which became the Italian Republic in 1802 and the Kingdom of Italy in 1805.