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).
First Republic of Venezuela
In 1812 the Confederation began suffering serious military reverses, and the government granted Miranda command of the army and leadership of the Confederation. A powerful earthquake, which hit Venezuela on 26 March 1812, also a Maundy Thursday, and caused damage mostly in republican areas, also helped turn the population against the Republic. Since, the Caracas Junta had been established on a Maundy Thursday, the earthquake fell on its second anniversary in the liturgical calendar. This was interpreted by many as a sign from Providence, and many, including those in the Republican army, began to secretly plot against the Republic or outright defect. Other provinces refused to send reinforcements to Caracas Province. Worse still, whole provinces began to switch sides. On 4 July an uprising brought Barcelona over to the royalist side. Neighboring Cumaná, now cut off from the Republican center, refused to recognize Miranda's dictatorial powers and his appointment of a commandant general. By the middle of the month many of the outlying areas of Cumaná Province had also defected to the royalists.