Panama and Colombia
Bolivar, well aware of geographical obstacles but also of the unique qualities and critical role in trade throughout history and under Spanish tutelage, had hesitated to include Panama in his Gran Colombia project. Besides the geographical argument, there was the fact that Simon Bolivar’s actions had been the decisive military factor in the independence of Venezuela, New Granada and Ecuador, while his role in Panama’s independence was none. Thus, while Bolivar knew that the nation of Panama was linked historically and culturally to South America, he was also conscious of the fact that the region was part of the Central American geography. This view is clearly seen in some of his famous documents and quotes such as his Carta de Jamaica (1815):
The Isthmian States, from Panama to Guatemala, will perhaps form an association. This magnificent position between the two great oceans could with time become the emporium of the universe. Its canals will shorten the distances of the world: they will narrow commercial ties between Europe, America and Asia; and bring to such fortunate region the tributes of the four parts of the globe. Perhaps some day only there could the capital of the world be established!New Granada will join Venezuela, if they convene to form a new republic, their capital will be Maracaibo….This great nation would be called Colombia in tribute to the justice and gratitude of the creator of our hemisphere.
Nevertheless in 1821, convinced that under Bolivar's leadership the nation's destiny would move in the most progressive direction, the Isthmus joined Venezuela, New Granada (present day Colombia) and latter Ecuador, in 1822. The Republic of Colombia (1819–1830) or ‘Gran Colombia’ as it began to be called only after 1886, more or less corresponded in territory to the old colonial administrative district called the Viceroyalty of New Granada (1717–1819). While Panama had also been included in the Viceroyalty during the colonial period, the Isthmus' economic and political ties had been much closer, for all practical purposes, to the Viceroyalty of Peru (1542–1821).
In September 1830, under the guidance of General José Domingo Espinar, the local military commander who rebelled against the nation's central government in response to his being transferred to another command, Panama separated from the Republic of Colombia and requested that general Simón Bolívar take direct command of the Isthmus Department. It made this a condition to its reunification with the rest of the country. Bolívar rejected Espinar's actions, and though he did not assume control of the isthmus as he desired, he called for Panama to rejoin the central state. Because of the overall political tension, Republic of Colombia's final days were approaching. Bolívar's vision for territorial unity disintegrated finally when General Juan Eligio Alzuru undertook a military coup against Espinar's authority. By early 1831, with order restored, Panama reincorporated itself to what was left of the republic -forming a territory now slightly larger than present day Panama and Colombia combined- which by then had adopted the name of Republic of New Granada. The alliance of the two nations would last seventy years and prove precarious.
19th century Panama
By July 1831, as the new countries of Venezuela and Ecuador were being established, the isthmus would again reiterate its independence, now under the same General Alzuru as supreme military commander. Abuses committed by Alzuru's short-lived administration were countered by military forces under the command of Colonel Tomás de Herrera, resulting in the defeat and execution of Alzuru in August, and the reestablishment of ties with New Granada.
In November 1840, during a civil war that had begun as a religious conflict, the isthmus under the leadership of -now General- Tomás Herrera, who assumed the title of Superior Civil Chief, declared its independence as did multiple other local authorities. The State of Panama took in March 1841 the name of 'Estado Libre del Istmo', or the Free State of the Isthmus. The new state established external political and economic ties and by March 1841, had drawn up a constitution which included the possibility for Panama to rejoin New Granada, but only as a federal district. Herrera's style was first changed to Superior Chief of State in March 1841 and in June 1841 to President. By the time the civil conflict ended and the government of New Granada and the government of the Isthmus had negotiated the Isthmus's reincorporation to the union, Panama's First Republic had been free for 13 months. Reunification happened on December 31, 1841.
In the end, the union between Panama and the Republic of New Granada (under its various names United States of Colombia 1863–1886 and the Republic of Colombia since 1886) was made possible by the active participation of U.S.A. under the 1846 Bidlack Mallarino treaty until 1903.
In the 1840s, two decades after the Monroe Doctrine declared U.S. intentions to be the dominant anti-European imperial power in the Western Hemisphere, North American and French interests became excited about the prospects of constructing railroads and/or canals through Central America to quicken trans-oceanic travel. At the same time it was clear that New Granada’s control over the isthmus was turning increasingly untenable. In 1846, the United States and New Granada signed the Bidlack Mallarino Treaty, granting the U.S. rights to build railroads through Panama, and -most significantly- the power to militarily intervene against revolt to guarantee New Granadine control of Panama. The world's first transcontinental railroad, the Panama Railway, was completed in 1855 across the Isthmus from Aspinwall/Colón to Panama City. From 1850 until 1903, the United States used troops to suppress separatist uprisings and quell social disturbances on many occasions, creating a long-term animosity among the Panamanian people against the US military and resentment against Bogotá. The Bidlack-Mallarino Treaty had ushered a new era of U.S. intervention and conflicts which would linger on into the new millennium. The first of many such conflicts was known as the Watermelon War of 1856, where U.S. soldiers mistreated locals causing large-scale race riots that U.S. Marines eventually put down.
Under a federalist constitution that was later brought up in 1858 (and another one in 1863), Panama and other constituent states gained almost complete autonomy on many levels of their administration, which led to an often anarchic national state of affairs that lasted roughly until Colombia's return to centralism in 1886 with the establishment of a new Republic of Colombia.
As was often the case in the new world after independence, the local administrative and political structures were controlled by the remnants of the colonial aristocracy. In the case of Panama, this elite was constituted by a group of under ten extended families. Though Panama has made enormous advances in social mobility and racial integration, it is still true that much of Panama's economic and social life is controlled by a small number of families. The derogatory termrabiblanco ("white tail"), of uncertain origin, has been used for generations to refer to the usually Caucasian members of the elite families.
In 1852 the isthmus would adopt trial by jury in criminal cases and—30 years after abolition—would finally declare and enforce an end to slavery. In 1855, the firstTranscontinental railway of the New World, the Panama Railway, was built across the isthmus from Colón to Panama City to transport fortune hunters who wanted quick passage to the gold fields of California. The existence of the railroad made speculation about a Panamanian canal feasible.