The Peruvian War of Independence was a conflict from 1820 to 1826 that resulted in Peru's liberation from Spanish colonial rule. This war was part of the broader wave of Latin American independence movements, which sought to free colonies from European dominance and establish sovereign nations. The struggle in Peru involved various military campaigns, local uprisings, and significant figures like José de la Riva Agüero and Simón Bolívar, reflecting the complexity and regional variations of the fight for independence across Latin America.