who wrote the star spangled banner?

best answer
“The Star-Spangled Banner” was penned by Francis Scott Key a 19th-century lawyer who dabbled in poetry. Inspired by the Battle of Baltimore in 1814 Keys was so moved at the American resilience he saw that he couldn’t wait to write the lyrics — and scribbled them on the backside of a letter.