<human>:  What is the history of the national anthem?
<bot>: The national anthem of the United States of America is "The Star-Spangled Banner," composed by Francis Scott Key in 1814 during the War of 1812. The poem, originally titled "Defense of Fort McHenry," was written after Key witnessed the bombardment of Fort McHenry by British ships of the Royal Navy in Baltimore Harbor. Key was inspired by the American flag's ability to withstand the attack and thereby symbolize the resilience of the American people. On March 3, 1931, the song was officially adopted as the national anthem of the United States of America.