 And that was Stars and Stripes Forever, composed by John Philip Sousa and published in 1897. And Stars and Stripes Forever was a popular song during the time of the Spanish-American War, which was a conflict between Spain and the United States in 1898, April 25th through August 12th.