In 1817 San Martín had 4,000 soldiers in Mendoza ready to invade Chile, where the insurgent armies had been defeated in Rancagua by a Spanish army sent from Perú. The remnants of the Chilean patriots dispersed, and some of them crossed the Andes and presented themselves to San Martín in the city of Mendoza. He received some and rejected others. Among the former was D. Bernardo O'Higgins, upon whose loyalty San Martín was certain he could depend.

San Martín crossed the Andes, and defeated the Spaniards at Chacabuco. Later, he fought the decisive battle of Maipó, passing then to Santiago, where he was proclaimed director of the state, from which position he immediately resigned, using all his influence to have O'Higgins appointed in his stead, which was done. O'Higgins was an honest man and an excellent administrator. He immediately appointed San Martín general-in-chief of the army, and together they planned the invasion of Perú by sea.

With the help of Admiral Cochrane, San Martín reached the shores of Perú, where he landed. After some delay, due to the desire to enlist public opinion in the cause of independence, he took the city of Lima on July 8, 1821, and was appointed Protector of Perú. He wished to unite Guayaquil and Perú, in which plan he was opposed by Bolívar.

Guayaquil had declared itself independent of Spain in October, 1820. We have seen that Sucre was sent there by Bolívar because that section had not been included in the armistice agreed to with Morillo in Santa Ana. In Guayaquil there were three parties, one on the side of Perú, one on the side of Colombia, and a third which desired the independence of that section. There were several movements in favor of and against these conflicting views, when Bolívar sent messages to Sucre, O'Higgins, San Martín, and other prominent men, in an endeavor to form a combination to bring about an early and successful end to the war for independence. In all the difficulties of Guayaquil, Sucre displayed exceptional prudence and tact, but when he was obliged to leave the city in order to draw to himself the attention of the Spaniards and thus facilitate the movement of Bolívar against Pasto, the intrigues increased, and Bolívar had to intervene, sending a message to the Junta of Guayaquil, asking them to recognize the union of Guayaquil and Colombia. San Martín was on the point of declaring war on Colombia, a fatal step which was prevented by the pressure of other more urgent matters, and perhaps because the victories of Bomboná and Pichincha were too recent to encourage any disregard of the conquerors.

As soon as Bolívar arrived in Quito, he decided to go to Guayaquil to take the situation in hand. He arrived on July 11, and was received in triumph, his presence producing a decided effect in favor of the union with Colombia. He published a proclamation inviting expressions of popular opinion as to union, and was waiting for the day on which the representatives of the province were to meet, when General San Martín appeared in the city, surprising everybody, for, although he had sent Bolívar a letter notifying him of his intended visit, Bolívar had not received it. He was most cordially received by the Liberator, who, in a previous communication, had declared his friendship for the Protector of Perú. San Martín landed on the 26th of July, and that night had a long personal conference with Bolívar, concerning which opinions varied. There were no witnesses of that interview. It is certain that the men discussed the union of Guayaquil, and the conflicting ideas of both leaders. Again the intellectual superiority of Bolívar was evident. One thing, however, is known: forty hours after landing in Guayaquil, the Protector left the city and went to Perú, where he resigned his position and then sailed for Chile, whence he went to the Argentine Republic. Later, he proceeded to Europe, where he died in the middle of the century, a great man, the victim of the ingratitude of his fellow citizens, always modest and reserved, and, in many respects, an unsolved mystery. He harbored no resentment towards Bolívar. When he arrived in Callao after the interview, the papers published the following words over his name:

"The 26th of last July, when I had the satisfaction of embracing the Hero of the South, was one of the happiest days of my life. The Liberator of Colombia is not only helping this state with three of his brave battalions, united to the valiant division of Perú under the command of General Santa Cruz, to put an end to the war in America, but he is also sending a considerable number of arms for the same purpose. Let us all pay the homage of our eternal gratitude to the immortal Bolívar."

CHAPTER XVI

Junín, a Battle of Centaurs. The Continent's Freedom Sealed in Ayacucho

(1822-1824)

After the victories of Bomboná and Pichincha Bolívar again evidenced his disinterestedness and his generosity in praising his officers. He reiterated his desire to resign his power. He expressed in a letter the need he felt for rest, and a belief that a period of repose might restore his former energy, which he felt slipping away from him.