Who wrote the star-spangled banner during a british attack on baltimore's fort mchenry during the war of 1812?

Francis Scott Key wrote the star-spangled banner.