Kammala wannan jumlar: A karni na 19, yayin da kasashen biyu suka sami 'yanci daga Spain, Peru da Chile sun raba dangantakar zaman lafiya sakamakon sakamakon kafa dangantakar tattalin arziki da siyasa wanda ya kara karfafa kyakkyawar dangantaka. A lokacin da
Yaƙin Confederation (1836<unk>1839), Chile da 'yan adawa na Peru sun kafa kawancen soja don' yanci da sake haɗa jamhuriyoyin Kudancin Peru da Arewacin Peru daga Peru-Bolivian Confederation. Daga baya, a lokacin Yaƙin tsibirin Chincha (1864<unk>1866), Peru da Chile sun jagoranci haɗin gwiwa a kan rundunar jiragen ruwa na Mutanen Espanya da suka mamaye tsibirin Chincha na Peru da kuma rushe kasuwanci a Kudancin Pacific. A cikin shekarun 1870, a lokacin rikice-rikicen farko kafin Yaƙin Pacific, Peru ta nemi yin shawarwari game da sasantawar zaman lafiya tsakanin Bolivia da Chile. Kodayake Peru tana da kawancen tsaro na sirri tare da Bolivia, Peru ba ta yi wa Chile yaƙi ba ko da bayan da Chile ta mamaye tashar jiragen ruwa ta Bolivia na Antofagasta. Ba a bayyana yakin ba har sai Chile ta bayyana yakin da Peru da Bolivia a 1879. Peru ta ayyana yaƙi da Chile a rana mai zuwa. Yaƙin ya haifar da mamayewar Chilean na Peru da lalata gine-gine da biranen Peruvian daban-daban, babban hari da kuma mamaye babban birnin Peru, Lima na shekaru biyu. Sakamakon karshe na yakin ya bar wani rauni mai zurfi a kan al'ummomin uku da suka shiga, kuma dangantakar da ke tsakanin Peru da Chile ta yi zafi fiye da ƙarni, kodayake dangantakar ta daidaita zuwa wani mataki ta Yarjejeniyar Lima ta 1929.