<human>:  What is the history of the national anthem of the United States?
<bot>: The national anthem of the United States is "The Star-Spangled Banner," written by Francis Scott Key during the War of 1812. The lyrics for "The Star-Spangled Banner" were taken from a poem written by Key in 1814. The poem was inspired by Key's witnessing of the bombardment of Fort McHenry in Baltimore during the war. Key's poem was set to the tune of a popular British song called "To Anacreon in Heaven" and renamed "The Star-Spangled Banner." In 1916, President Woodrow Wilson declared the song to be the official national anthem of the United States. On March 3, 1931, President Herbert Hoover signed a congressional resolution officially making "The Star-Spangled Banner" the national anthem of the United States.