Word of Spain's troubles in 1808 in the Napoleonic Wars soon reached Caracas, but only on 19 April 1810 did its ""cabildo"" (city council) decide to follow the example set by the Spanish provinces two years earlier. On 5 July 1811, seven of the ten provinces of the Captaincy General of Venezuela declared their independence in the Venezuelan Declaration of Independence. The First Republic of Venezuela was lost in 1812 following the 1812 Caracas earthquake and the Battle of La Victoria (1812). Simón Bolívar led an "Admirable Campaign" to retake Venezuela, establishing the Second Republic of Venezuela in 1813; but this did not last either, falling to a combination of a local uprising and Spanish royalist reconquest. Only as part of Bolívar's campaign to liberate New Granada in 1819–20 did Venezuela achieve a lasting independence from Spain (initially as part of Gran Colombia).