Sheremetev took the Swedish Ingrian fortresses of Nöteborg (October 1702) and Nyenskans (1 May 1703) (allowing the foundation of the city of Saint Petersburg later in May 1703)) and the important Baltic cities Dorpat and Narva in 1704. In 1705 Peter I sent him to Astrakhan, where he forcefully and successfully repressed the Cossack Astrakhan revolt of 1707-1708.