 He went to Texas to investigate a dispute around San Agustín de Ahumada Presidio between Governor Ángel de Martos y Navarrete and Rafael Martínez Pacheco (future governor of Texas).It was at this time that he obtained the title of inspector general of the Provincias Internas (general inspector of the Interior Provinces).Later, in 1767, he was appointed governor of Texas, in replacement of Martos and Navarrete.