Spain–Venezuela relations
News of Spanish losses in the 1808 Napoleonic Wars soon reached Latin America, but only on 19 April 1810 did the "cabildo" (city council) of Caracas 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 long either, falling to a combination of a local uprising and Spanish royalist reconquest.
Public Ministry of Venezuela
After the independence processes that gave origin to the Venezuelan nation were advanced in 1819, within the framework of the origin of the republic, it was when the figure of the Attorney General was established, who was in charge of ensuring the compliance and application of the legal order. Years later, in 1830, the Constitution of the Gran Colombia, would consecrate to the Public Ministry as an organ dependent on the Executive Power, in the figure of the Attorney General of the Republic. It was not until 1901 when the Constitution of the United States of Venezuela establishes the Public Ministry, in charge of the Attorney General of the Nation, differentiating its functions from those corresponding to the Judicial Power.