Colombia achieved independence from Spain in 1819 after a six-year revolutionary war. The conflict liberated the territory of the former Viceroyalty of New Granada, leading to the creation of the Republic of Colombia—a union that originally encompassed present-day Colombia, Ecuador, Panama, and Venezuela.
Simón Bolívar, known as El Libertador, led the military and political campaign that secured independence. His strategic victories, including the decisive Battle of Boyacá on August 7, 1819, broke Spanish control in the region.
The newly formed Republic of Colombia (often called Gran Colombia to distinguish it from the modern nation) was a short-lived federal republic. It dissolved by 1831 into the separate countries we know today, but the independence movement marked the end of Spanish colonial rule in northern South America.