He rose to the position of governor of Olonets (1784) and Tambov (1785), personal secretary to the Empress (1791), President of the College of Commerce (1794), and finally the Minister of Justice (1802).