In 1819 after Simón Bolívar defeated the bulk of the royalist army in the Battle of Boyacá, there were new uprisings in the Valle del Cauca and the Criollos took control permanently. In 1822 Bolívar arrived in Santiago de Cali. The city was an important military outpost and the region contributed many men to the war of independence that liberated the nations in the south.