query: When was Saint Petersburg first founded?
passage: History of Saint Petersburg
Founded by Tsar Peter the Great on 27 May 1703. It became capital of the Russian Empire for more than two hundred years (1712–1728, 1732–1918). St. Petersburg ceased being the capital in 1918 after the Russian Revolution of 1917.[1]
passage: Saint Petersburg
On 12 June 1991, simultaneously with the first Russian presidential elections, the city authorities arranged for the mayoral elections and a referendum upon the name of the city. The turnout was 65%; 66.13% of the total count of votes went to Anatoly Sobchak, who became the first directly elected mayor of the city.