 There was a resistance between Peruvians and Chileans for a few years because they could not reach an agreement.The United States offered help with a treaty for both Peru and Chile, better known as the Treaty of Ancón.This was later signed by both of them on 20 October 1883 to keep peace between them.