During the famous Guayaquil Conference in 1822, between Bolívar and the general José de San Martín, the former had already proclaimed Guayaquil under the Gran Colombia protectorate, which actually meant its annexation, even though Guayaquil was Peruvian territory.