In Peru, after the war and the defeat of the Confederation in the Battle of Yungay, the new Peruvian provisional government of Agustín Gamarra, with the protection of the Chilean Army, declared the dissolution of the Confederation on August 25, 1839, initiating the so-called national restoration and creating the New Constituent General Congress of Peru. He substituted the confederate organization with a unitary organization, withdrew Bolivian public workers, and rebuilt Peru's international relations.
