When did Francis Scott Key write the Star- Spangled Banner?

Francis Scott Key wrote "The Star Spangled Banner" in 1814.