 He served in Panama until 1699, when he was named bishop of Ayacucho (or Huamanga) in what is still Peru.He opened the University of San Cristóbal de Huamanga (founded in 1677) there, and was its first rector.This university was opposed by the older University of San Marcos.