The Star-Spangled Banner became the national anthem of the United States in 1931. It was chosen for its inspiring words and the fact that it was written during a historic moment in American history – the War of 1812. The song's lyrics and melody reflect the values of courage, sacrifice, and resilience that are an integral part of the American identity.