Inspired by the sight of the American flag still waving triumphantly over the fort after the intense battle, Key wrote a poem titled "Defence of Fort M'Henry" on the back of an envelope. The poem consisted of four stanzas and was set to the tune of a popular British song called "To Anacreon in Heaven."
Key's poem quickly gained popularity when it was published in a Baltimore newspaper shortly after the battle. It resonated with the American public and became widely sung as a patriotic song. However, it was not officially designated as the United States National Anthem until much later.
In 1916, President Woodrow Wilson issued a proclamation designating "The Star-Spangled Banner" as the official national anthem of the United States. However, it was not until 1931 that Congress passed a resolution officially confirming "The Star-Spangled Banner" as the national anthem, making it the official song representing the United States of America.
Over the years, "The Star-Spangled Banner" has become an iconic symbol of American patriotism and unity, often sung at national events, sporting events, and other gatherings to evoke a sense of pride, unity, and national identity among Americans.