On March 3, 1931 after the Great Depression started to roll, and after 40 previous attempts failed, a measure passed Congress and was signed into law that formally designated “The Star-Spangled Banner” as the national anthem of the United States.  Only during World War II did the "Star Spangled Banner" start to be played at sporting events to whip up nationalism among the population.  It was done to generate support for the war.