The Star-Spangled Banner is the national anthem of the United States of America. The words were written by Francis Scott Key in 1814, during the War of 1812. The anthem is often played before sporting events in the U.S.