Answer:
José de San Martín.
Step-by-step explanation:
José de San Martín was a Spanish-Argentine revolutionary general who organized an army of 5000 soldiers in 1817 and led it through the Andes peaks to invade Chile, freeing the country from Spanish rule.
After securing Chilean independence, with a fleet commanded by the Lord Cochrane, he invaded Peru and declared independence in Lima in 1821, with himself as dictator.