'The Star-Spangled Banner' is the national anthem of the United States, written by Francis Scott Key in 1814. It was inspired by the vision of the American flag still flying after a crucial battle during the War of 1812. The melody is based on a popular British song of the era. Officially adopted as the national anthem in 1931, it is today sung at many sporting events and patriotic ceremonies in the United States.