"The Star-Spangled Banner" is the national anthem of the U.S.A., with lyrics written in 1814 by Francis Scott Key. Key, a 35-year-old lawyer and amateur poet, wrote them as a poem after seeing the bombardment of Fort McHenry in Baltimore, Maryland, by British ships in Chesapeake Bay during the War of 1812.
The poem, titled "Defence of Fort McHenry," was set to the tune of the popular British drinking song "The Anacreontic Song", more commonly known by its first line, "To Anacreon in Heaven," and became a well-known American patriotic song. With a range of one and a half octaves, it is known for being notoriously difficult to sing. It was recognized for official use by the Navy in 1889 and the President in 1916, and was made the national anthem by a Congressional resolution on 3 March 1931 (46 Stat. 1508, codified at 36 USC §301). Although the song has four stanzas, only the first is commonly sung today, with the fourth ("O thus be it ever when free men shall stand ...") added on more formal occasions.