Chile's founding father, Bernardo O'Higgins, was born in Chillán in 1778. He was the force behind Chile's Independence from Spain, being elected supreme director and declaring independence after the Battle of Chacabuco against the Spaniards in 1817. His later victory at the Maipo battlefield cemented the country's freedom. He died in exile in Peru in 1842.