The fortunes of the Commonwealth declined during the 18th century. Three partitions took place, dividing its territory among the Russian Empire, the Habsburg Empire, and the Kingdom of Prussia. Forces led by Jakub Jasiński expelled Russians from Vilnius during the uprising in 1794. However, after the third partition of April 1795, Vilnius was annexed by the Russian Empire and became the capital of the Vilna Governorate. During Russian rule, the city walls were destroyed, and by 1805 only the Gate of Dawn remained. In 1812, the city was taken by Napoleon on his push towards Moscow, and again during the disastrous retreat. The Grande Armée was welcomed in Vilnius. Thousands of soldiers died in the city during the eventual retreat; the mass graves were uncovered in 2002. Inhabitants expected Tsar Alexander I to grant them autonomy in response to Napoleon's promises to restore the Commonwealth, but Vilnius did not become autonomous, neither by itself nor as a part of Congress Poland.