Task: Text Categorization
Input (English): He was brought up by foster parents and was subsequently educated at San Carlos College before being sent to England. He left England for Spain in 1799, but not before associating with a secret Masonic Lodge established in London by Francisco Miranda. Beginning in 1814, Royalist forces began a three-year occupation after his Chilean patriots lost at Rancagua. In 1817 at Chacabuco, along with Jose de San Martin, he led a combined force of Argentine troops and Chilean exiles in a successful effort against the Spanish and was subsequently elected interim Supreme Director of Chile. For 10 points, name this South American independence leader who had a father of Irish descent.
Output (English): History