 In 1779 he became a military physician, in which capacity he visited Cuba, and later New Spain.In 1785 he was named a commissioner of the Royal Botanical Garden in New Spain.At the same time a botanical garden and a course of study on the flora of Mexico at the Royal and Pontifical University of Mexico (now UNAM) were authorized.