How Bolivia Lost Its Coastline: The War of the Pacific, the Atacama Desert & South America’s Shifting Borders

Every March 23, landlocked Bolivia observes Dia del Mar (Day of the Sea) with parades led by an active naval force stationed high in the Andes on Lake Titicaca. Meanwhile, neighboring Chile stretches 4,300 kilometers north into the hyper-arid Atacama Desert. Both facts stem from the 1879-1884 War of the Pacific, a resource conflict over coastal guano and sodium nitrate that reshaped the political map of South America.

History & Conflicts Written by Robin Updated November 23, 2026 10 min read
Cartographic Plate 10 · Natural Earth 1:50m
The Atacama Frontier, Andean Cordilleras & Post-1879 Borders
Pre-1879 24th Parallel Border Lima La Paz Arica Salar de Uyuni Antofagasta Santiago Asuncion
1873 Allied States (Bolivia & Peru)Chile (Expanded North Into Antofagasta, Tarapaca & Arica)Neighboring Southern Cone States (Argentina & Paraguay)Pre-1879 24th Parallel Border (1866 & 1874 Treaties)

Modern South American boundaries overlaid with the pre-1879 24th-parallel Chile-Bolivia border (dashed crimson) and the Arica-to-La Paz rail transit corridor guaranteed under the 1904 treaty (dashed gold).

1. Bolivia’s Original Coastline and the Atacama Barrier

When Bolivia gained independence from Spain in 1825, it was not a landlocked country. Its territory included the Departamento del Litoral, a coastal province spanning roughly 120,000 square kilometers and about 400 kilometers of Pacific shoreline between the Loa River in the north and the 24th parallel south. Bolivia established Cobija as its official port in 1825, and later saw the port of Antofagasta grow rapidly after 1868.

Physical geography, however, made governing that coast difficult from the Bolivian highlands. Between the political centers of Sucre and La Paz on the Altiplano and the Pacific ports lay the high Western Cordillera of the Andes and hundreds of kilometers of waterless Atacama desert. Moving troops or supplies from the interior to the coast required weeks of overland travel across mountain passes above 4,000 meters.

By contrast, Chilean steamships could reach Antofagasta and Mejillones from Valparaiso in just a few days. As a result, Chilean capital, British investment, and Chilean laborers came to dominate the population and economy of Bolivia’s coastal towns long before any shots were fired.

2. Guano, Sodium Nitrate, and the 1866-1874 Treaties

In the mid-19th century, the barren Atacama Desert suddenly became one of the most valuable strips of land in the Americas. European agriculture and munitions factories depended heavily on two nitrogen-rich exports found along the Peruvian and Bolivian coasts: coastal seabird guano and inland caliche deposits refined into sodium nitrate (saltpeter).

Because colonial Spanish borders across the uninhabited desert had never been precisely surveyed, Bolivia and Chile negotiated two boundary treaties to manage the boom. The 1866 treaty fixed the frontier at the 24th parallel south while creating a shared mineral tax zone between the 23rd and 25th parallels. In 1874, a revised treaty kept the 24th-parallel border and eliminated the shared zone, on the condition that Bolivia would not increase taxes on Chilean nitrate companies operating north of the line for 25 years.

Meanwhile, Peru controlled the adjacent nitrate-rich province of Tarapaca just north of Bolivia’s coast. Seeking to protect its state nitrate revenues and counterbalance Chilean economic expansion, Peru signed a secret mutual defense treaty with Bolivia in February 1873.

Primary Historical Map · Published April 15, 1879
Carta de los Desiertos de Tarapaca y de Atacama (Oficina Hidrografica de Chile)
Issued in Santiago ten days after Chile formally declared war on Peru and Bolivia, this 1879 survey details the ports of Iquique, Cobija, Mejillones, and Antofagasta, the coastal nitrate fields, and the high mountain trails crossing the Andes into Bolivia. Source: Oficina Hidrografica de Chile (April 15, 1879) via Wikimedia Commons · Public Domain
Carta de los Desiertos de Tarapaca y de Atacama (Oficina Hidrografica de Chile)
1879 Chilean Hydrographic Office map of the Tarapaca and Atacama deserts showing coastal ports, nitrate zones, and Andean mountain routes

3. The War of the Pacific (1879-1884): Sea Power Over Desert Terrain

The diplomatic balance broke down in 1878, when Bolivia’s government imposed a new 10-centavo export tax per quintal on the Chilean-backed Antofagasta Nitrate and Railway Company. Chile protested that the tax violated the 1874 treaty. When Bolivia moved to seize and auction the company’s assets, Chilean troops landed and occupied Antofagasta on February 14, 1879. After Peru acknowledged its 1873 defensive pact with Bolivia, Chile formally declared war on both countries on April 5, 1879.

In a desert theater where overland supply lines were nearly impossible to sustain, command of the Pacific Ocean decided the war. After months of naval engagements, the Chilean fleet captured the Peruvian ironclad Huascar at the Battle of Angamos in October 1879. With uncontested control of the sea, Chile landed troops directly along the coast, took Tarapaca and Arica, pushed Bolivian forces out of the active conflict after the Battle of Tacna in 1880, and occupied Lima in January 1881.

Treaty & YearSignatoriesTerritorial OutcomeLong-Term Geographic Effect
Treaty of Ancon (1883)Chile & PeruPeru cedes Tarapaca permanently; Tacna and Arica held for 10 years pending a voteChile gains Peru’s richest nitrate province; northern border remains unsettled for decades
Treaty of Peace and Friendship (1904)Chile & BoliviaBolivia cedes the Litoral Department (Antofagasta) permanently to ChileBolivia becomes landlocked; Chile builds the Arica-La Paz railway and grants port transit rights
Treaty of Lima (1929)Chile & PeruTacna returns to Peru; Arica remains permanently with ChileRequires Peruvian consent if Chile ever transfers former Peruvian land (Arica) to a third state

4. From the 1904 Treaty to the 2018 ICJ Ruling

The postwar settlements permanently redrew South America’s Pacific coast. Under the 1904 Treaty of Peace and Friendship, Bolivia recognized Chilean sovereignty over its former Litoral Department in exchange for financial compensation, free commercial transit to Pacific ports, and the construction of the Arica-La Paz railway, which opened in 1913.

A further legal complication emerged in 1929. When the Treaty of Lima resolved the long-delayed Tacna-Arica dispute by returning Tacna to Peru and awarding Arica to Chile, a supplementary protocol stipulated that neither country could cede any of those former Peruvian territories to a third nation without the other’s agreement. That clause directly affected later diplomatic proposals, such as the 1975 Charana talks, to grant Bolivia a narrow coastal corridor north of Arica.

In 2013, Bolivia brought a case before the International Court of Justice (ICJ), arguing that decades of bilateral statements created a legal duty for Chile to negotiate sovereign ocean access. On October 1, 2018, the court ruled 12-3 that Chile bears no such legal obligation, though the judges encouraged both neighbors to continue cooperative dialogue.

5. How the Border Shapes Trade and Resources Today

Together with Paraguay, Bolivia is one of only two landlocked countries in the Americas. Economists estimate that relying on cross-border mountain highways and rail links to Chilean ports (principally Arica, Iquique, and Antofagasta) as well as Peruvian ports like Ilo adds significant transport costs to Bolivian imports and exports.

At the same time, the territorial outcome of the War of the Pacific continues to shape global commodity markets. Although synthetic fertilizers replaced natural saltpeter in the early 20th century, the former war zone in northern Chile sits atop some of the world’s largest copper reserves, including the open-pit mine at Chuquicamata, alongside major lithium brines in the Salar de Atacama. Just across the Andean ridge in Bolivia lies the Salar de Uyuni, placing both former adversaries at the center of the modern energy-transition mineral map.

Quick Self-Check

Andes, Atacama & South America Pacific Coast Drill

1 / 6 Score: 0

How Bolivia Lost Its Coastline: Frequently Asked Questions

When and how did Bolivia lose its coastline?

Bolivia lost practical control of its coastal Litoral Department (including Antofagasta and Cobija) to Chile in 1879 during the War of the Pacific, and formally ceded the territory under the 1904 Treaty of Peace and Friendship.

Why does landlocked Bolivia still have a navy?

Bolivia maintains the Armada Boliviana to patrol Lake Titicaca and its navigable Amazon and Paraguay river basins, and as a national institution representing its long-standing aspiration for sovereign access to the Pacific Ocean.

What did the 2018 International Court of Justice ruling decide between Bolivia and Chile?

On October 1, 2018, the ICJ ruled by a 12-3 vote that Chile has no legal obligation under international law to negotiate sovereign access to the Pacific Ocean for Bolivia, while noting that both countries remain free to pursue dialogue.

Interactive Trainer & Live Modes

Turn Reading Into Active Recall on the Map

Keep what you just read with a 5-minute daily lesson, test your speed in live 1v1 duels, or play today’s shared world voyage.

Related Articles & Guides

Andes & Pacific Coast