History of the Ecuadorian–Peruvian territorial dispute nature, but was meant only for ecclesiastical and military jurisdiction. During the first 10 years of independence, Gran Colombia, under the leadership of Simon Bolivar, had continually protested Peru's occupation of Tumbes and Jaen; Maynas had not been militarily occupied yet. Peru ignored Simon Bolivars ultimatum to return Tumbes and Jaen or face war. Bolivar then declared war and Peru responded by successfully invading and occupying southern Ecuador with a force of 8,000 soldiers. Simon Bolivar sent Jose Antonio de Sucre to Ecuador who lead 4,000 Gran Colombian soldiers that defeated the Peruvian invaders in the Battle of Tarqui in
History of Colombia 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