To its north, Chile imposed its dominance by eliminating the threat posed by the union of Bolivia with Peru during the War of the Confederation (1836-1839), followed by the conquest of these countries' mineral-rich territories in the Atacama during the War of the Pacific (1879-1884)—in the process leaving Bolivia landlocked and pillaging the Peruvian capital. To its south and east, Chile used military force and colonization to occupy Araucanía (1861-1883) and successfully dispute Argentine claims over westernmost Patagonia and the Strait of Magellan—the outbreak of war only narrowly avoided in multiple occasions. Chile's expansionist drive practically culminated with Easter Island's annexation in 1888, but vestiges of it continued well into the 20th century—"e.g.", the country's claim over Antarctic territory in 1940.