Bolivia, country of west-central South America. Extending some 950 miles (1,500 km) north-south and 800 miles (1,300 km) east-west, Bolivia is bordered to the north and east by Brazil, to the southeast by Paraguay, to the south by Argentina, to the southwest and west by Chile, and to the northwest by Peru. Bolivia shares Lake Titicaca, the second largest lake in South America (after Lake Maracaibo), with Peru. The country has been landlocked since it lost its Pacific coast territory to Chile in the War of the Pacific (1879–84), but agreements with neighbouring countries have granted it indirect access to the Pacific and Atlantic oceans. The constitutional capital is the historic city of Sucre, where the Supreme Court is established, but the administrative capital is La Paz, where the executive and legislative branches of government function.