 During the Napoleonic Wars, he served Czar Alexander I of Russia.During this time, he married Princess Sophie Alexeievna Galitzine (23 November 177723 July 1814), the daughter of a highly noble Lithuanian-Russian family.In appreciation of his loyalty, Alexander made him the Governor of Podolia and Odessa.