Argentina declared its independence in 1816 and Chile did the same in 1818. Once the Spaniards had been expelled, relations between the two nations soured primarily due to a border dispute: both claimed to have inherited overlapping parts of Patagonia.