Original sentence: Emancipation was completed on December 1824, when General Antonio José de Sucre defeated Spanish troops at the Battle of Ayacucho.Spain made futile attempts to regain its former colonies, such as at the Battle of Callao, but in 1879 finally recognized Peruvian independence
Edited sentence: Emancipation — which in Peruvian history means emancipation of the landholding class from ineffective Spanish control — was finally completed in December 1824, when General Antonio José de Sucre defeated the Spanish troops at the Battle of Ayacucho, ending Spanish rule in South America.Spain made futile attempts to regain its former colonies, such as at the Battle of Callao, but in 1879 it finally recognized Peru's independence