 The Star Spangled Banner did not become the national anthem officially until 1931. The United States did not have a national anthem until 1931. But it was one of the songs that was played at patriotic gatherings such as Fourth of July.