Who wrote words to the star spangled banner?

A man named Francis Scott Key wrote the Star Spangled Banner outside of an American fort; Fort McHenry in the War of 1812. However, it was not until 1931 when President Herbert Hoover made it the national anthem.