 He spent some time living in Ireland before entering the Spanish foreign service under the protection of the Count of Aranda and the Count of Floridablanca.It was in 1792, under the Aranda ministry, that he was named High Officer of the Secretary of State (Secretary of the Cabinet).Of progressive ideas, he translated the "Death of Caesar" of Voltaire, then forbidden by the Catholic Church.