In his capacity as president of the Audiencia of Lima he twice served as governor (interim viceroy) of Peru (1666–1667 and 1672–1674).
He held the positions of president of the Audiencia of Lima and governor (interim viceroy) of Peru twice, in 1666–1667 and 1672–1674.