Treaty of Nystad
The population of Gammalsvenskby traces its origins to Hiiumaa (Dagö) in present-day Estonia, once a part of the Duchy of Estonia. Under the Treaty of Nystad, the island was among the territory ceded to the Russian Empire in 1721 at the end of the Great Northern War.