from what country did panama gain independence in 1903
Separation of Panama from Colombia The separation of Panama from Colombia was formalized on 3 November 1903, with the establishment of the Republic of Panama. From the Independence of Panama from Spain in 1821, Panama had simultaneously declared independence from Spain and joined itself to the confederation of Gran Colombia through the Independence Act of Panama. Panama was always tenuously connected to the rest of the country to the south, owing to its remoteness from the government in Bogotá and lack of a practical overland connection to the rest of Gran Colombia. In 1840-1841, a short-lived independent republic was established under Tomás de Herrera. After rejoining Colombia following a 13-month independence, it remained a province which saw frequent rebellious flare-ups, notably the Panama crisis of 1885, which saw the intervention of the United States Navy.
Central America Panama, situated in the southernmost part of Central America on the Isthmus of Panama, has for most of its history been culturally linked to South America. Panama was part of the Province of Tierra Firme from 1510 until 1538 when it came under the jurisdiction of the newly formed Audiencia Real de Panama. Beginning in 1543, Panama was administered as part of the Viceroyalty of Peru, along with all other Spanish possessions in South America. Panama remained as part of the Viceroyalty of Peru until 1739, when it was transferred to the Viceroyalty of New Granada, the capital of which was located at Santa Fé de Bogotá. Panama remained as part of the Viceroyalty of New Granada until the disestablishment of that viceroyalty in 1819. A series of military and political struggles took place from that time until 1822, the result of which produced the republic of Gran Colombia. After the dissolution of Gran Colombia in 1830, Panama became part of a successor state, the Republic of New Granada. From 1855 until 1886, Panama existed as Panama State, first within the Republic of New Granada, then within the Granadine Confederation, and finally within the United States of Colombia. The United States of Colombia was replaced by the Republic of Colombia in 1886. As part of the Republic of Colombia, Panama State was abolished and it became the Isthmus Department. Despite the many political reorganizations, Colombia was still deeply plagued by conflict, which eventually led to the secession of Panama on 3 November 1903. Only after that time did some begin to regard Panama as a North or Central American entity.[citation needed]