After Chile won its independence from Spain, the Chilean government demanded that there be a national anthem with lyrics (words) and music. The first version of "Canción Nacional" was written by Eusebio Lillo in 1819, and Ramón Carnicer composed the music a year later. While Carnicer was exiled in England, he composed the second (and current) version until he returned to Barcelona, Spain in 1827. A year later, Carnicer's new anthem premiered in Santiago, Chile. Then in 1847, Eusebio Lillo wrote the new lyrics, which was then revised (changed for the better) in 1909.