Initial attempts to free Panama from Spain came from South American liberators, not Panamanians, who saw Panama as a strategic link, both politically and militarily between South America and the Central American states. As early as 1787, Venezuelan
Francisco de Miranda attempted to interest the British in a canal project in Panama to increase trade for Britain, in exchange for military support to bolster South American independence hopes. The attack by Napoleon, who deposed the Spanish monarch in 1807, led to the push for independence throughout South America by
Simón Bolivar. Though Bolivar did not set foot in Panama, he advocated for independence, declaring in his 1815 "Letter from Jamaica" that the independence of Panama would lead to commerce opportunities. In 1819 the Scotsman
Gregor MacGregor led a failed attempt to free Panama. When South American revolutionary zeal deposed
Viceroyalty of New Granada Juan de la Cruz Mourgeón, he fled to Panama and was declared governor. As soon as Mourgeón sailed, Fábrega seized the moment for Panama's independence. On 10 November 1821, the first call for independence was made in the small provincial town of
Villa de los Santos. Called the "
Primer Grito de Independencia de la Villa de Los Santos" (Shout for Independence), it ignited rebels throughout the Panamanian countryside. Using bribes to quell resistance from the Spanish troops and garner their desertion, the rebels gained control of
Panama City without bloodshed. An open meeting was held with merchants, landowners, and elites, who fearing retaliation from Spain and interruption of trade decided to join the
Republic of Gran Colombia and drafted the
Independence Act of Panama. == Cause of the independence of the isthmus of Panama ==