The long, slender country runs along the border of two tectonic plates, with the Nazca plate beneath the South Pacific Ocean pushing into the South America plate, a phenomenon that also formed the Andes mountains.