At the end of September of that same year, the two revolutionary armies of Balta and Prado, totaling 10,000 men, met in Chincha Alta south of Lima.
Under the command of General Pedro Diez Canseco, the Restoration forces began to enter the capital in the early hours of 6 November, outwitting the government troops who were guarding the outskirts of the city.
In the following night, the Fort of Santa Catalina, where Pezet's Minister of Government, Evaristo Gómez Sánchez y Benavides had taken cover, fell after fierce resistance.
Pezet, who was on the outskirts of Lima at the head of his troops, upon seeing the capital fall and contrary to the wishes of his generals, did not want to cause more bloodshed and renounced power on 8 November.
Given his lack of thoroughness, the army chiefs deposed Diez Canseco on 25 November 1865 and proclaimed Colonel Mariano Ignacio Prado dictator.