The city was founded by Tsar Peter the Great on 27 May 1703 on the site of a captured Swedish fortress, and was named after the apostle Saint Peter. In Russia, Saint Petersburg is historically and culturally associated with the birth of the Russian Empire and Russia's entry into modern history as a European great power. It served as a capital of the Tsardom of Russia, and the subsequent Russian Empire, from 1712 to 1918 (being replaced by Moscow for a short period between 1728 and 1730). After the October Revolution in 1917, the Bolsheviks moved their government to Moscow.
The city was renamed Leningrad after Lenin's death in 1924. It was the site of the siege of Leningrad during World War II, the most lethal siege in history. In June 1991, only a few months before the Belovezha Accords and the dissolution of the Soviet Union, voters in a city-wide referendum supported restoring the city's original name.