Peru country profile
Peru's rich and varied heritage includes the ancient Incan capital of Cuzco and the lost city of Machu Picchu.
The country boasts spectacular scenery, including Lake Titicaca, the world's highest navigable lake. A growing number of visitors are being drawn to its variety of attractions.
The country has been experiencing an economic boom. Foreign investors, attracted by the government and encouraged by favourable conditions, have been keen to get involved in exploiting the country's mineral wealth, sometimes in the face of local resistance.
Peru has become the world's leading producer of cocaine.
The country is still trying to come to terms with the trauma of a two-decade conflict - roughly from 1980 to 2000 - between the state and leftist guerrilla groups, the Tupac Amaru Revolutionary Movement and the Shining Path, which still has a following.
Republic of Peru
Population 29.7 million
Area 1.28 million sq km (496,225 sq miles)
Major languages Spanish, Quechua, Aymara
Major religion Christianity
Life expectancy 72 years (men), 77 years (women)
Currency nuevo sol
President: Pedro Pablo Kuczynski
Former Prime Minister Pedro Pablo Kuczynski was elected in June 2016, having beaten Keiko Fujimori, the daughter of imprisoned ex-President Alberto Fujimori.
Seen as a conservative, the economist was educated in the UK and USA at the prestigious Oxford and Princeton Universities. He worked extensively for the World Bank and the International Monetary Fund in the 1960s and 1970s, before moving on to run private investment funds.
He served twice as finance minister under President Alejandro Toledo before being promoted to prime minister in August 2005. He is commonly known by his initials PPK, or as "El Gringo", due to his European parentage.
Privately-run broadcasters and newspapers dominate the media scene.
Lima is home to dozens of radio stations and several TV services.
By late 2015 some 16 million Peruvians were online - 53% of the population. There is a stark disparity between urban and rural internet penetration.
Some key dates in Peru's history:
1532-33 - Spanish conquistadores defeat the Incas, whose empire subsequently becomes part of the Vice-royalty of Peru with its capital in Lima.
1780 - Failed Inca revolt against Spanish led by Tupac Amaru II.
1824 - Peru is last colony in South America to gain independence from Spain.
1849-74 - Some 80,000-100,000 Chinese workers arrive in Peru to do menial jobs such as collecting guano.
1866 - Peruvian-Spanish war.
1879-83 - Peru and Bolivia are defeated by Chile during the Pacific War in which Peru loses territory to Chile.
1941 - Brief border war with Ecuador over disputed territory. The two countries clash again in 1981.
1948 - Military government installed following coup.
1963 - Peru returns to civilian rule, but in 1968 military takes over again. Gen Juan Velasco Alvarado introduces populist land reform programme and carries out large-scale nationalisations.
1980 - Return to civilian rule.
1980-2000 - Civil war involving Shining Path, or Sendero Luminoso, guerrillas seeking to overthrow the government. The conflict is estimated to claim 70,000 lives.
2000 - Congress sacks President Alberto Fujimori, who is later jailed for abuse of power and ordering death squad killings.
2011 onwards - Anti-mining protests.