He studied at the universities of Kiel, Edinburg, and Uppsala. During the German Campaign of 1813 and the French Campaign of 1814 he served in Crown Prince Charles' ("Bernadotte") chancellery and attended the conferences at Trachenberg (now Zmigrod, Poland), and Frankfurt. He also attended the peace congress at Kiel, which resulted in the Treaty of Kiel, where Denmark would cede Norway to Sweden. Starting in 1814 he served as the "chargé d'affaires" at The Hague and from 1818 to 1828 he was the Swedish envoy to London.