Answer
Peru gained its independence from Spanish colonial rule after the Battle of Ayacucho in 1824. This significant event marked the culmination of the Peruvian War of Independence, which saw the South American country fight for its freedom from Spanish control. The battle, which took place on the Pampa de Quinua, resulted in a decisive victory for the Peruvian forces, led by General Antonio José de Sucre.