People with Finnish heritage comprise a relatively large share of the population of Sweden. In addition to a smaller part of Sweden Finns historically residing in Sweden, there were about 426,000 people in Sweden (4.46% of the total population in 2012) who were either born in Finland or had at least one parent who was born in Finland. Like the Swedish language, the Finnish language has been spoken on both sides of the Gulf of Bothnia since the late middle ages. Following military campaigns in Finland by Sweden in the 13th century, Finland gradually came under Swedish rule and made Finns in Finland and Sweden were subjugates of Sweden. Already in the 1400s, a sizeable population of Stockholm spoke Finnish, and around 4% in the 1700s. Finland remained a part of Sweden until 1809 when the peace after the Finnish War handed Finland to the Russian Empire, though leaving Finnish populations on the Swedish side of the Torne river.