The Peruvian War of Independence was a military conflict that took place from 1811 to 1824, resulting in Peru's liberation from Spanish colonial rule. This war was part of the broader independence movements across Spanish America, where colonists sought to break free from Spanish dominance and establish sovereign nations.