 He was also advisor to the viceroy on military matters and counsel for the Holy Office of the Inquisition.He served in Mexico until 1615, publishing his history of the Philippines in 1609, which has become noted for its account of the early colonial years and has been translated into numerous languages and published in many editions.In 1615 he was named president of the Audiencia of Quito, within the Viceroyalty of Peru.