In January 1678 a palace revolution broke out against the queen-regent, who was driven from Madrid, and Valenzuela fled for refuge to the monastery of the Escorial.
He was chosen as one of the lords of the congregation in 1557, and commanded the contingents sent by Forfar and Fife against the queen regent in 1559.
Sagasta kept quiet until nearly the end of the struggle with the colonies, when the queen-regent had to dismiss the Conservative party, much shorn of its prestige by the failure of its efforts to pacify the colonies, and by the assassination of its chief, Canovas delCastillo.
He was invited to Portugal in 1555 and became provincial of his order, declining the offer of the archbishopric of Braga but accepting the position of confessor and counsellor to Catherine, the queen regent.
At the close of the war the queen regent and her ministers attempted to elbow out Espartero and his followers, but a pronunciamiento ensued in Madrid and other large towns which culminated in the marshal's accepting the post of prime minister.