Francis Scott Key napísal text po tom, čo bol svedkom britského bombardovania Fort McHenry v Baltimore počas vojny v roku 1812.