It was written during the Battle of Baltimore in 1814, as British warships shelled the city. Here's a link to the celebration which includes the world's largest human Stars and Stripes with 7000 people: Star-Spangled Spectacular | Star-Spangled 200Star-Spangled 200