The plague of 1654–1656 killed half the population of Moscow. The city stopped being Russia’s capital in 1712, after the building of Saint Petersburg by Peter the Great near the Baltic coast in 1703. The Plague of 1771 was the last big plague in central Russia, killing 100,000 people in Moscow alone. During the French invasion of Russia in 1812, the Muscovites burned the city and ran away, as Napoleon’s army was coming near to the city on 14 September. Napoleon’s army, which was very hungry and cold, had to leave and was nearly destroyed by the freezing Russian winter and some attacks by the army.