Answer and Explanation:
The Star-Spangled Banner was written by Francis Scott in 1814 during the war of 1812. Key was a lawyer and amateur poet who was aboard a British ship in Baltimore harbor during the bombardment of Fort McHenry.
The British had been attacking Baltimore, and Key had been negotiating a prisoner exchange with the British. When the attack began, Key was detained on the British ship and watched the attack from a distance. He could see the American flag flying over Fort McHenry, and he was inspired by its resilience in the face of the British bombardment.
The next morning, Key saw that the flag was still flying over the fort, and he was moved to write a poem, which he titled "Defence of Fort M'Henry." The poem was set to the tune of a popular English song, and it soon became known as "The Star-Spangled Banner."
The song became popular throughout the United States, and in 1916, President Woodrow Wilson designated it as the national anthem. Since then, "The Star-Spangled Banner" has been performed at important national events, including the opening of the Olympic Games and the inauguration of the President of the United States.