Treaty of Nystad
In 1645, Saaremaa was ceded from Denmark to Sweden by the Treaty of Brömsebro. In 1721, along with the rest of Livonia, Saaremaa (then known by its Swedish name of Ösel) was ceded to the Russian Empire by the Treaty of Nystad, becoming a part of the Governorate of Livonia.