On 15 February 1819, Bolívar was able to open the Venezuelan Second National Congress in Angostura, in which he was elected president and Francisco Antonio Zea was elected vice president. Bolívar then decided that he would first fight for the independence of New Granada, to gain resources of the vice royalty, intending later to consolidate the independence of Venezuela.
The campaign for the independence of New Granada, which included the crossing of the Andes mountain range, one of history's military feats, was consolidated with the victory at the Battle of Boyacá on 7 August 1819. The Battle of Boyacá (1819), was the decisive battle that ensured the success of Bolívar's campaign to liberate New Granada. The battle of Boyaca is considered the beginning of the independence of the North of South America, and is considered important because it led to the victories of the battle of Carabobo in Venezuela, Pichincha in Ecuador, and Junín and Ayacucho in Peru.
Bolívar returned to Angostura, when congress passed a law forming a greater Republic of Colombia on 17 December, making Bolívar president and Zea vice president, with Francisco de Paula Santander vice president on the New Granada side, and Juan Germán Roscio vice president on the Venezuela side.