In 1929, Chile and Peru settled a longstanding border dispute. Under terms of the agreement, Chile was award Arica and Peru was award Tacna. Chile held all of the territory it had taken from Bolivia but accorded Bolivia a railway outlet to the Pacific.