he was viceroy of navarra during part of the tear 1807, and spanish ambassador in paris, london and lisbonne, knight of the military order of alcantara and other knighthoods in france, naples, prussia, hungary, and russia. in 1813 he drafted the treaty of valençay. he was also a director of the problematic banco de san carlos, founded in 1782 by the french - spanish financier francisco cabarrus, (1752–1810), father of famous french revolution woman madame tallien, (31 july 1773 – 15 january 1835).