On 20 June 1799, the 1798-1799 Piedmontese Republic ceased to exist when it was conquered by Austro-Russian troops immediately after the Battle of Trebbia (1799). It was subsequently reincorporated into the Kingdom of Sardinia, but exactly a year later, it was reestablished as the Subalpine Republic, after Napoleon took back much of northern Italy after the victorious Battle of Marengo. The Subalpine Republic lasted until 11 September 1802, when it was divided between the French Republic and the Italian Republic.