History of Venezuela
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).
Venezuelan War of Independence
Even before the Congress began its sessions in November 1810, a civil war started between those who supported the juntas, and eventually independence, and royalists who wanted to maintain the union with Spain. Two provinces, Maracaibo Province and Guayana Province, and one district, Coro, never recognized the Caracas Junta and remained loyal to the governments in Spain. Military expeditions to bring Coro and Guayana under the control of the Republic failed. In 1811 an uprising in Valencia against the Republic was successfully suppressed. By 1812 the situation increasingly became aggravated for the young Republic. It was short of funds, Spanish Regency set up a blockade (although it was easily bypassed by British and American merchant ships), and, shortly after, on 26 March 1812, a devastating earthquake affected republican areas. In these desperate moments, Miranda was given dictatorial powers, nevertheless, he was unable to stem the royalist advance headed by Captain Domingo de Monteverde. By midyear, after the Battle of San Mateo, the Republic collapsed. Miranda capitulated to Monteverde and signed an armistice on 25 July 1812.