Treaty of Nystad
The Russian Empire conquered Swedish Livonia during the course of the Great Northern War and acquired the province in the Capitulation of Estonia and Livonia in 1710, confirmed by the Treaty of Nystad in 1721. Peter the Great confirmed German as the exclusive official language. Russia then added Polish Livonia in 1772 during the Partitions of Poland.