ニスタット条約
The territory in turn was conquered by the Russian Empire during the Great Northern War and, following the Capitulation of Estonia and Livonia in 1710, formed the Governorate of Livonia. Formally, it was ceded to Russia in the Treaty of Nystad in 1721, together with Swedish Estonia and Swedish Ingria.