The Treaty of Defensive Alliance was a secret defense pact between Bolivia and Peru. Signed in the Peruvian capital, Lima, on 6 February 1873, the document was composed of eleven central articles that outlined its necessity and stipulations and one additional article that ordered the treaty to be kept secret until both contracting parties decided otherwise. The signatory states were represented by the Peruvian Foreign Minister José de la Riva-Agüero y Looz Corswaren and the Bolivian Envoy Extraordinary and Minister Plenipotentiary in Peru, Juan de la Cruz Benavente.
Ongoing border disputes between Bolivia and Chile worsened South America's tense political environment, which was made all the more precarious by a global economic depression. The system of mutual defense established between Bolivia and Peru sought to protect their national security and the regional balance of power by containing Chilean expansionism, which was fueled by Chile's economic ambitions over the mineral resources of the Atacama Desert. The pact's stated intentions were to guarantee the integrity, independence, and sovereignty of the contracting parties.