The Puna de Atacama dispute, sometimes referred to as Puna de Atacama Lawsuit, was a border dispute involving Argentina, Chile and Bolivia in the 19th century over the arid high plateau of Puna de Atacama located about 4500 meters above the sea around the current borders of the three countries. The dispute originated with the Chilean annexation of the Bolivian Litoral Department in 1879 during the War of the Pacific. In 1879 the Chilean Army occupied San Pedro de Atacama, the main settlement of the current Chilean part of Puna de Atacama. By 1884 Bolivia and its ally Peru had lost the war and Argentina communicated to the Chilean Government that the borderline in the Puna was still a pending issue between Argentina and Bolivia. Chile answered that the Puna de Atacama still belonged to Bolivia. The same year Argentina occupied Pastos Grandes in the Puna. Bolivia had still not signed any peace treaty with Chile until the Treaty of Peace and Friendship of 1904. In the light that influential Bolivian politicians considered the Litoral Province lost for ever, the adjacent Puna de Atacama appeared to be a remote, mountainous and arid place difficult to defend. This prompted the Bolivian government to use it as a tool for to obtaining benefits from both Chile and Argentina. This led to the signature of two contradictory treaties in which Bolivia granted Argentina and Chile overlapping areas. The treaties were the following:
On May 19, 1891, the Matta-Reyes Protocol was signed between Chile and Bolivia. This protocol recognised the Bolivian territories occupied by Chile since the War of the Pacific as ceded to Chile, including those in the Puna de Atacama, in exchange of defaulting some debts.
On November 2, 1898, Argentina and Chile signed two documents where they decided to convene a conference to define the border in Buenos Aires with delegates of both countries. If there was no accord, a Chilean and Argentine delegate and the United States minister to Argentina, William Buchanan, would decide. As foreseen, there was no accord at the conference and Buchanan proceeded with Chilean delegate Enrique Mac Iver and Argentine José Evaristo Uriburu to define the border. Of the 75,000 km2 in dispute 64,000 were awarded to Argentina and 11,000 to Chile.