Colombia, previously known as the Republic of New Granada, was under Spanish rule for nearly three hundred years. It gained its independence in 1810, along with Venezuela and Ecuador, under the leadership of Simón Bolívar, who is regarded as a liberator in Latin America. After a series of historical events, Colombia emerged as an independent nation in November 1819, when the patriots defeated the Spanish army in the Battle of Boyacá. On July 20, 1821, former Spanish colonies, including Colombia, Venezuela, Ecuador, and Panama, joined forces to form the Republic of Gran Colombia, with Bolívar as its president.
However, political and territorial disputes led to the dissolution of Gran Colombia in 1830. As a result, Colombia became an independent nation, officially known as the Republic of New Granada, with Bogotá as its capital. In 1863, the country's name changed to the United States of Colombia, and finally, in 1886, it adopted its current name, the Republic of Colombia, which it retains today.