Science and technology in the Peru has an extensive history, spanning from pre-Columbian cultures such as the Inca Empire, the Spanish colonial era of the Viceroyalty of Peru to present day nation of Peru.

The oldest observatory in the Americas was constructed in 2200 BCE by a culture in Buena Vista, Peru who aligned structures to the summer solstice, with the belief that this was a way to determine when to begin planting crops in the nearby Chillón River.
Spanning from 800 BCE to 100 BCE, the Paracas culture near Ica, Peru was among the earliest in the Americas to perform trepanning on individuals suffering from cranial ailments.: 116–122 Concurrently, the Casma–Sechin culture of Ancash built around 350 BCE at Chanquillo the "Thirteen Towers", a set of solar observatory structures positioned to monitor both solstices.
The Wari Empire that existed from 600 to 1200 created the quipu record-keeping system, which used a number of knots, colors and lengths of fibers as a form of communication.

The Inca Empire, lasting from 1438 to 1533, adopted technologies of previous cultures, holding knowledge in agricultural terraces, hydraulics and road systems that since their construction, have lasted centuries. Agriculturally, the Inca state owned all land in its territory, using large state projects to construct dams and irrigation canals to benefit crops, with the most important being maize, potatoes, quinoa, tarwi. In metallurgy, possessed practices in alloys, casting and repoussé. Some of the technologies the Inca were most adept with were architecture and stonemasonry, using workers provided by the state to create large stone structures with basic tools. Much of the structures constructed by the Inca utilized the layout of the surrounding environment to improve sustainability. A technique called caninacukpirca was used by the Inca to fit large stones together without mortar, allowing structures to withstand forces from earthquakes and water. Administration of the empire – from construction planning to taxes– was managed through communications by quipu.

During the Colonial era, Jesuits in the Viceroyalty of Peru documented in the 1600s that they were taught by the Quechua people to use Jesuit's bark to treat fever chills, later discovering that it was an effective treatment for malaria due to it containing quinine. Popularity of Jesuit's bark grew after King Charles II of England was cured of malaria with its use.
Pedro Peralta y Barnuevo, a polymath who was the rector of the National University of San Marcos was instrumental in bringing Enlightenment philosophy to the Viceroyalty of Peru.
Mariano Eduardo de Rivero y Ustáriz was instrumental in establishing education in mining engineering in Peru between the 1820s and 1850s. Physician Cayetano Heredia was responsible for introducing modern European medical techniques to Peru in the 1840s and 1850s, serving as the first dean of the Faculty of Medicine San Fernando.
Italian Antonio Raimondi immigrated to Peru in 1850 and immediately engaged in dozens of expeditions throughout its territory, leading to discoveries that he published in his book, El Perú, in 1874.
In 1873, mathematician Federico Villarreal discovered at the age of 23 a method, known as the Villarreal algorithm, to raise any polynomial to any power while working as a secondary school teacher. Chemist Enrique Guzmán y Valle contributed to Peru's efforts in War of the Pacific, developing torpedo technology and creating chemicals to assist with disinfection.
In 1908, Juan Alberto Grieve created the Grieve in 1908, the first automobile developed in South America, though plans for further manufacturing were canceled after President Augusto B. Leguía refused to provide necessary state funding to the project.
From the late-Colonial era into the Republican era, scientific findings in health and medicine were frequently published. Physician Carlos Monge Medrano was the first person to determine the pathology of chronic mountain sickness in 1925, which was named "Monge's disease" after him.
Research in other fields besides medicine was rarely documented, however. A notable example of research that was not published includes a 1924 presentation by Santiago Antúnez de Mayolo, who theorized a "neutral element" that Peruvian historians and physicists said was a prediction of the neutron, which had not been discovered at the time. Another example includes Pedro Paulet, a chemist, engineer and diplomat who reported in 1927 that he had developed, without documentation, one of the first liquid-propellant rockets while studying in France in the 1890s, with his work serving as an inspiration for rocketry pioneers, including Max Valier the founders of NASA.
In 1961, the Jicamarca Radio Observatory, an incoherent scatter radar designed to study Earth's ionosphere, was first operated with the assistance of the United States. It has since been a facility operated by the Geophysical Institute of Peru with assistance from the National Science Foundation and Cornell University.
During the military government of Juan Velasco Alvarado, the Institute for the Research in Industrial Technology (ITINTEC) was created in 1971. ITINTEC created a model where 2% of all profits by companies was directed to the institute, with companies having a choice of funding their own research after receiving ITINTEC approval or instead providing the funds to be used as ITINTEC wished. The United States Agency for International Development provided funding for ITINTEC to recreate terrace systems similar to those used by the Inca Empire that were determined to be highly efficient. The ITINTEC model was successful and other Latin American nations sought to replicate themselves.

In February 1975, the Velasco government created the Peruvian Institute of Nuclear Energy (IPEN) and a year later, under his successor Francisco Morales Bermúdez, a nuclear plan was established for Peru. In 1977, Argentina agreed with Peru to help it establish a nuclear program, with RP-0 (Reactor Peruano de Potencia Cero) reaching critical condition on 20 July 1978. Ten years later in 1988, RP-10 (Reactor Peruano de Potencia 10), a light-water reactor that utilizes uranium-235 enriched to 20%, was activated. Since its establishment, IPEN has utilized its facilities for research in agricultural use, such as food irradiation, and in creating radiopharmaceuticals.
In 1989, Peru began operations at Machu Picchu Base, a research settlement constructed in Antarctica. The base is used to study the Humboldt Current, an ocean current in the Pacific Ocean that largely affects the weather in Peru.

Beginning in the 2000s, meteorologist Fey Silva Vidal made contributions regarding the El Niño phenomenon and climate prediction in the Peruvian Andes. The National Commission for Aerospace Research and Development (CONIDA) developed its own sounding rocket, the Paulet, which was first launched at the Chilca Launch Range in 2006.
In the 2010s and 2020s, biochemist of Universidad San Ignacio de Loyola, Ana María Muñoz, led teams to develop internationally-recognized health and household hygiene products. In 2017, biologist Norma Salinas Revilla received a national award from the L'Oréal-UNESCO For Women in Science Project for her studies of the carbon cycle and climate change effects in the Amazon rainforest.
During the COVID-19 pandemic, which heavily affected Peru, biologist Milagros Zavaleta Apestegui led the development of a test kit to determine variants of SARS-CoV-2 that originated from Brazil, South Africa and the United Kingdom. During the pandemic, researchers at Cayetano Heredia University studied the potential of using antibodies from alpacas to develop a treatment for COVID-19, noting that these "nanobodies" have a greater chance of countering pathogens due to their small size. Mónica Gómez León, an engineer, has received international recognition for her studies on antimicrobial nano-materials for textiles to prevent infections, contributing research on the application of such materials to prevent COVID-19.
With 20% of Peru's freshwater being polluted by textile industry dyes, chemical engineer María Quintana led students of Cayetano Heredia University to develop a low-cost Photo-Fenton process that eliminated dyes in water.

Peru, like other Latin American countries, experiences brain drain, when individuals who are well-trained with an expertise emigrate to a nation with better socioeconomic opportunities. In the 2020s, surveys in Peru showed that 96% of students sought to emigrate from Peru following their studies and that almost 75% of companies faced difficulty recruiting professionals.
Notable emigrants include:
In recent years, funding for research in Peru has been limited. Alberto Fujimori, who led Peru throughout the 1990s, prioritized neoliberal economic reforms and removed funding for scientific research, resulting in the dismantling of ITINTEC. World Bank Group data from 2020 showed that Peru utilized only 0.13% of its gross domestic product towards research compared to the 0.71% in Latin America and 2.27% world average, respectively. This rate of spending was after the government increased funding by 500% between 2010 and 2020.