Inspired by the American flag flying over Fort McHenry the morning after a bombardment, Francis Scott Key wrote the initial verse of the anthem on the back of a letter. He later completed the four verses which a Baltimore newspaper first published, according to the Smithsonian National Museum of American History.