In its first years, Gran Colombia helped other provinces still at war with Spain to become independent: all of Venezuela except Puerto Cabello was liberated at the Battle of Carabobo, Panama joined the federation in November 1821, and the provinces of Pasto, Guayaquil and Quito in 1822. That year Colombia became the first Spanish American republic recognized by the United States, due to the efforts of diplomat Manuel Torres. The Gran Colombian army later consolidated the independence of Peru in 1824.
