Excerpts from Books and Wikipedia
"Far to the south, during those years, the brilliant general José de San Martín had trained a combined Argentine-Chilean patriot army in western Argentina, then crossed the Andes unexpectedly, in a surprise attack similar to Bolívar’s, and decisively defeated Chilean royalists. San Martín met a hero’s welcome in the Chilean capital, where his movement gathered strength for three years before launching an expedition northward against Lima. The viceroy of Peru withdrew from Lima into the Peruvian highlands. Then San Martín’s frustrations began. A year after capturing Lima and declaring Peruvian independence, his army had bogged down, unable to finish the job." [Born in Blood & Fire: A Concise History of Latin America, 4th Ed., p. 115]