Swedish Livonia
The Duchy of Courland and Semigallia existed as a German-speaking country until 1795, while the northern part of Duchy of Livonia was conquered by Sweden which controlled parts of Estonia between 1561 and 1710 and Swedish Livonia between 1621 and 1710, having signed an agreement with the local Baltic German nobles not to undermine their political rights and autonomy.