Peru, officially the Republic of Peru, is a country in western South America. It is bordered in the north by Ecuador and Colombia, in the east by Brazil, in the southeast by Bolivia, in the south by Chile, and in the west by the Pacific Ocean. Peru is an extremely biodiverse country with habitats ranging from the arid plains of the Pacific coastal region in the west to the peaks of the Andes mountains vertically extending from the north to the southeast of the country to the tropical Amazon Basin rainforest in the east with the Amazon river.
Peruvian territory was home to several ancient cultures, ranging from the Norte Chico civilization in the 32nd century BC, the oldest civilization in the Americas, to the Inca Empire, the largest and most sophisticated state in pre-Columbian America. The Spanish Empire conquered the region in the 16th century and established a Viceroyalty that encompassed most of its South American colonies, with its capital in Lima. Peru formally proclaimed independence in 1821, and following the military campaigns of José de San Martín and Simón Bolívar, and the decisive battle of Ayacucho, Peru secured independence in 1824.