 then in the Viceroyalty of Peru.That year he was jailed by order of Governor and Captain General José de Guzmán y Ávalos, with whom he had personal differences.In 1695 he added the additional responsibility of president of the "Audiencia" of Panama.