After the defeat of France in the Napoleonic Wars,as ambassador to the Austrian Empire he was a member of the Russian delegation to the Congress of Vienna (1814–15) along with prince Razumovski, count Nesselrode and count Capo d Istria. In this capacity he was pivotal in the absorption of most of the Duchy of Warsaw into the Russian Empire as the Kingdom of Poland.
After a long career as a diplomat, he was awarded the Order of St. Andrew, and spent his retirement in Paris, where he died in 1850.