Between 1784 and 1786 he was secretary of the Spanish embassy in Saint Petersburg and chargé d'affaires in Berlin.
During his tenure between 1784 and 1786, he played a key role as secretary at the Spanish embassy in Saint Petersburg and managed diplomatic ties with Berlin.