In the Russo-Swedish War 1808–1809 he was commander-in-chief in Finland, which still belonged to Sweden. Thanks to his very good standing with the Russian Imperial Family he later managed to alleviate the harsh terms of the peace negotiations when Finland was lost to Russia.