The history of Colombia includes its settlement by indigenous peoples and the establishment of agrarian societies, notably the Muisca Confederation, Quimbaya Civilization, and Tairona Chiefdoms. The Spanish arrived in 1499 and initiated a period of annexation and colonization, ultimately creating the Viceroyalty of New Granada, with its capital at Bogotá. Independence from Spain was won in 1819, but by 1830 the resulting "Gran Colombia" Federation was dissolved. What is now Colombia and Panama emerged as the Republic of New Granada. The new nation experimented with federalism as the Granadine Confederation (1858) and then the United States of Colombia (1863) before the Republic of Colombia was finally declared in 1886. A period of constant political violence ensued, and Panama seceded in 1903. Since the 1960s, the country has suffered from an asymmetric low-intensity armed conflict which escalated in the 1990s but decreased from 2005 onward. The legacy of Colombia's history has resulted in a rich cultural heritage, and Colombia's geographic and climatic variations have contributed to the development of strong regional identities.

Pre-Columbian

From approximately 12,000 years BP onwards, hunter-gatherer societies existed near present-day Bogotá (at El Abra and Tequendama), and they traded with one another and with cultures living in the Magdalena River valley. Due to its location, the present territory of Colombia was a corridor of early human migration from Mesoamerica and the Caribbean to the Andes and the Amazon basin. The oldest archaeological finds are from the Pubenza archaeological site and El Totumo archaeological site in the Magdalena Valley southwest of Bogotá. These sites date from the Paleoindian period (18.000–8000 BCE). At Puerto Hormiga archaeological site and other sites, traces from the Archaic period in South America (~8000–2000 BCE) have been found. Vestiges indicate that there was also early occupation in the regions of El Abra, Tibitó and Tequendama in Cundinamarca. The oldest pottery discovered in the Americas, found at the San Jacinto archaeological site, dates to 5000–4000 BCE. Indigenous people inhabited the territory that is now Colombia by 10.500 BCE. Nomadic hunter-gatherer tribes at the El Abra and Tequendama sites near present-day Bogotá traded with one another and with other cultures from the Magdalena River Valley.

Serranía de la Lindosa, a mountainous region of Guaviare Department, is known for an extensive prehistoric rock art site which stretches for nearly eight miles. Some authors have argued that the site depicts now extinct animals such as horses, gomphotheres and ground sloths and that it was painted around 12,600 years ago, but other authors have argued that the drawings depict modern (including domestic) animals and were created in the last 500 years after European contact.

Between 5000 and 1000 BCE, hunter-gatherer tribes transitioned to agrarian societies; fixed settlements were established, and pottery appeared. Beginning in the 1st millennium BCE, groups of Amerindians including the Muisca, Quimbaya, Tairona, Calima, Zenú, Tierradentro, San Agustín, Tolima and Urabá became skilled in farming, mining and metalcraft; and some developed the political system of cacicazgos with a pyramidal structure of power headed by caciques. The Muisca inhabited mainly the area of what is now the Departments of Boyacá and Cundinamarca high plateau (Altiplano Cundiboyacense) where they formed the Muisca Confederation. The Muisca had one of the most developed political systems (Muisca Confederation) in South America, surpassed only by the Incas.Ocampo López, 2007, p. 27 They farmed maize, potato, quinoa and cotton, and traded gold, emeralds, blankets, ceramic handicrafts, coca and especially salt with neighboring nations. The Tairona inhabited northern Colombia in the isolated Andes mountain range of Sierra Nevada de Santa Marta.Broadbent, Sylvia 1965: Los Chibchas: organización socio-política. Série Latinoamericana 5. Bogotá: Facultad de Sociología, Universidad Nacional de Colombia The Quimbaya inhabited regions of the Cauca River Valley between the Western and Central Ranges. The Incas expanded their empire on the southwest part of the country. During the 1200s, Malayo-Polynesians and Native Americans in Colombia made contact, thereby spreading Native American genetics from Precolonial Colombia to some Pacific Ocean islands.Polynesians, Native Americans made contact before European arrival, genetic study finds by Stanford University Medical Center

Colonial period Pre-Columbian history

Europeans first visited the territory that became Colombia in 1499 when the first expedition of Alonso de Ojeda arrived at the Cabo de la Vela. The Spanish made several attempts to settle along the north coast of today's Colombia in the early 16th century, but their first permanent settlement, at Santa Marta, dates from 1525. The Spanish commander Pedro de Heredia founded Cartagena on June 1, 1533, in the former location of the indigenous Caribbean Calamarí village. Cartagena grew rapidly, fueled first by the gold in the tombs of the Sinú culture, and later by trade. The thirst for gold and land lured Spanish explorers to visit Chibchan-speaking areas; resulting in the Spanish conquest of the Chibchan Nations - the conquest by the Spanish monarchy of the Chibcha language-speaking nations, mainly the Muisca and Tairona who inhabited present-day Colombia, beginning the Spanish colonization of the Americas.Tairona Heritage Trust: Tairona history to the time of the Spanish Invasion Tairona Heritage Trust Accessed 21 August 2007.

The Spanish advance inland from the Caribbean coast began independently from three different directions, under Jimenéz de Quesáda, Sebastián de Benalcázar (known in Colombia as Belalcázar), and Nikolaus Federmann. Although the Indian treasures drew all three, none intended to reach the Muisca territory where they finally met.Lonely Planet, "History of Colombia", http://www.lonelyplanet.com/colombia/history . Accessed 6 May 2013. In August 1538, Quesáda founded Santa Fe de Bogotá on the site of the Muisca village of Bacatá.

In 1549, the institution of the Spanish Royal Audiencia in Bogotá gave that city the status of capital of New Granada, which comprised in large part what is now the territory of Colombia. As early as the 1500s, however, secret anti-Spanish discontentment was already brewing for Colombians since Spain prohibited direct trade between the Viceroyalty of Peru, which included Colombia, and the Viceroyalty of New Spain, which included the Philippines, the source of Asian products like silk and porcelain which was in demand in the Americas. Illegal trade between Peruvians, Filipinos, and Mexicans continued in secret, as smuggled Asian goods ended up in Córdoba, Colombia, the distribution center for illegal Asian imports, due to the collusion between these peoples against the authorities in Spain. They settled and traded with each other while disobeying the forced Spanish monopoly in more expensive silks and porcelain made in homeland Spain. In 1717, the Viceroyalty of New Granada was originally created, and then it was temporarily removed, to finally be reestablished in 1739. Felipe Salonga a rebel Filipino who mixed Christianity with Islam and was from the formerly Muslim kingdom Manila and who was implicated in the Tondo Conspiracy, was presumably exiled to the location of what is now the Viceroyalty of New Granada (Named after a formerly Islamic kingdom in Spain) in the Viceroyalty of Nueva Granada he fomented opposition against Spain among the oppressed Native Americas.(Title: The Philippine Islands, 1493-1898, V7, 1588-1591. Author: Emma Helen Blair) "Don Phelipe Salonga, chief of the village of Polo, was sentenced to exile in Nueva España for six years. Half of his property was to be set aside for the treasury of the king, our sovereign, and half for judicial expenses. He and the fiscal appealed to the royal Audiencia; but the case was returned to the captain-general, in order that justice might be done." (Page 97) AGI, Fil., 18a, 7, no.4. Letter from the Audiencia of Manila. Manila, May 20, 1589. The viceroyalty had Santa Fé de Bogotá as its capital. This viceroyalty included some other provinces of northwestern South America which had previously been under the jurisdiction of the viceroyalties of New Spain or Peru and correspond mainly to today's Venezuela, Ecuador and Panama. Bogotá became one of the principal administrative centers of the Spanish possessions in the New World, along with Lima and Mexico City.

Gran Colombia: independence re-claimed

From then on, the long independence struggle was led mainly by Bolívar and Francisco de Paula Santander in neighboring Venezuela. Bolívar returned to New Granada only in 1819 after establishing himself as leader of the pro-independence forces in the Venezuelan llanos. From there he led an army over the Andes and captured New Granada after a quick campaign that ended at the Battle of Boyacá on August 7, 1819. (For more information. see Military career of Simón Bolívar.)

That year, the Congress of Angostura established the Republic of Gran Colombia, which included all territories under the jurisdiction of the former Viceroyalty of New Granada. Bolívar was elected the first president of Gran Colombia and Santander, vice president.

As the Federation of Gran Colombia was dissolved in 1830, the Department of Cundinamarca (as established in Angostura) became a new country, the Republic of New Granada.

Colombia was the first nation in the Andean area to believe that racial inferiority was the cause of many of its initial problems. Criollos in the country believed that non-white citizens, mainly Indians and Africans, were lazy and holding the nation back. This led to an attempt to make a homogenous society that reflected the so-called good qualities of white people. These ideals led to a long-lasting racial and geographical segregation.

However, Colombia demonstrated a notable commitment to civil rights during the nineteenth century. The Colombian Constitution of 1863 made liberal promises for a broad range of civil rights, reflecting principles similar to those found in the United States Constitution, such as freedom of association, press, speech, religion, and due process. Colombia also abolished the death penalty during this time. Lastly, Colombian society embraced inclusivity, emphasizing that rights should be granted "universally without notice of sex nor differences of color nor unjust preferences of fortune, nor distinctions of age".

The Republic: Liberal and Conservative conflict

In 1863 the name of the republic was changed officially to "United States of Colombia," and in 1886 the country adopted its present name: "Republic of Colombia".