Early Life and career
His family being politically connected, in his childhood he was a page of Philip III of Spain. He accompanied his father to the Viceroyalty of Peru when he was appointed president of the Royal Audience of Charcas. After the death of his father, he was appointed Mayor of Oropeza and the valley of Cochabamba. Once his term of office expired, Egües served as an infantry captain and saw his first action against the United Provinces of the Netherlands in the defense of the port at El Callao.
In 1643 he began his journey back to Spain, which was interrupted by serious injuries received by Egües in a duel fought in the Captaincy General of Cuba against the governor of Santiago de Cuba, Bartolome de Osuna. Egües won this battle.
He was later a captain in the Carrera de Indias, General Fleet Admiral of the Fleet of New Spain, governor of the Spanish Armada, and Chief of the Council and Treasury Accounting. He was also a Knight of the Order of Santiago.
In 1661 he became president of the
Royal Audiencia of the Viceroyalty of New Granada, taking office in February of the following year. While in office, he encouraged the creation of Catholic missions among the indigenous paeces Indians and the tribes of the plains in the province of Pamplona in present-day Colombia. In 1663,
Tama Indians attacked Mocoa and "shattered all the crosses that they found". In Santafé, with the help of the syndic
Francisco de Caldas Barboza, he opened the first public slaughterhouse, finished the building of the tower and the porch at the Catedral Primada de Colombia and built bridges over the rivers San Agustín,
San Francisco and Funza.