 Multiple revolutions enabled the colonies to break free of the mother country.In 1824 the armies of generals José de San Martín of Argentina and Simón Bolívar of Venezuela defeated the last Spanish forces; the final defeat came at the Battle of Ayacucho in southern Peru.After that Spain played a minor role in international affairs.