 As viceroy, he increased the production of silver in the mines of Potosí, and stimulated production in other mines at San Nicolás, Cajatambo and Huancavelica.He limited the manufacture of aguardiente from sugar cane to authorized factories, which he taxed heavily.He had to take measures against the threat of privateers, in spite of the signing of the Peace of Utrecht in 1713, and against an uprising of slaves at the hacienda of Huachipa de Lima.