 Among the universities where he taught was the Universidad de San Marcos in Lima in the Viceroyalty of Peru.He is best known for his history book "Historia del Reino de Quito", although he also wrote books in fields other than history, such as physics textbooks and poetry anthologies.The book "Historia del Reino de Quito" is important in the history of Ecuador and of the city of Quito because it alleges the existence of a pre-Inca kingdom in what is now Ecuador and which is known as "Reino de Quito" ("Kingdom of Quito").