The next Russo-Swedish war was fought in (1808–1809). It ended with the Treaty of Fredrikshamn giving the Russia rights on the territory of Finland and Åland Islands. The newly established in 1809 Grand Duchy of Finland received broad autonomy within the Russian Empire and Western Karelia was returned to Finland. On 6 December 1917, the Parliament of Finland promulgated the Finnish Declaration of Independence. Western Karelia was annexed by the Soviet Union after the Winter War.