In 1702, Nyenschantz and Nyen were conquered by Russia during the Great Northern War, and the new Russian capital of Saint Petersburg was established by Peter the Great in their place the following year.