On 26 and 27 July 1822, Bolívar held the Guayaquil Conference with the Argentine General José de San Martín, who had received the title of "Protector of Peruvian Freedom" in August 1821 after partially liberating Peru from the Spanish.