In July 1857, General Juan Luis Franco Bidó besieged Santo Domingo. The Cibao-based government declared an amnesty to exiles and Santana returned and managed to replace Franco Bidó in September 1857. After a year of civil war, Santana captured Santo Domingo in June 1858, overthrew both Báez and Valverde and installed himself as president.