The Peruvian War of Independence (Spanish: Guerra de Independencia del Perú) was a series of military conflicts in Peru from 1809 to 1826 that resulted in the country's independence from the Spanish Empire. Part of the broader Spanish American wars of independence, it led to the dissolution of the Spanish Viceroyalty of Peru.
Throughout the colonial period of Peru, there were early attempts of independence movements. The Rebellion of Túpac Amaru II, although not the first or the last, was the most significant and culminated in violent repression by the viceregal authorities. This uprising erupted in response to the Bourbon Reforms and was the first time that viceregal documents used the term "insurgents." It was also a movement that proclaimed the abolition of slavery in Peru. However, there is debate as to whether the purpose of this rebellion was truly independence or a revolution of the viceregal social order.