This stage begins after the occupation of Lima, in February 1881, and extends until the consolidation of the Treaty of Ancón, between October and November 1883, which ends the war, with favorable conditions for Chile.