 Over a long career he served in Catalonia, Castile and New Spain.He was a member of the Royal Academy of Experimental Physics and Agriculture of Barcelona.In 1766 he edited "Disertación histórico-político-legal para los Colegios y Gremios de la Ciudad de Barcelona" ("Historical-Political-Legal Dissertation for the Associations and Professions of Barcelona"), in which he attempted to show the benefits of the professions for the improvement of public order, the laudable customs of the artisans, and the quality of manufactures in the city.