Rubuta ci gaba don wannan sakin layi - Kasashen da ke makwabtaka da Peru da Bolivia sun yi adawa da Peruvian Confederation tun daga farkonta, musamman Chile da Argentina, a matsayin barazanar soja da tattalin arziki, da kuma goyon bayanta ga 'yan adawa a gudun hijira. Yaƙin Ƙungiyar
An fara ne jim kadan bayan kafa ta lokacin da Chile da Argentina suka mamaye kasar. Argentina ta ci nasara a 1837, amma haɗin gwiwar Chile da Arewacin Peruvian masu adawa da aka sani da United Restoration Army sun yi nasara a yakin Yungay a watan Janairun 1839, wanda "de facto" ya kawo ƙarshen haɗin gwiwa kamar yadda aka mayar da Peru da Bolivia a matsayin jihohi masu zaman kansu, kuma Santa Cruz ya gudu zuwa gudun hijira. An ayyana Peru da Bolivian Confederation a hukumance a ranar 25 ga Agusta, 1839, ta Janar Agustín Gamarra bayan nadin sa a matsayin Shugaban Peru.