Who wrote the music to the Star Spangled Banner?

The tune of the Star Spangled Banner was adapted from "To Anacreon in Heaven," which was composed by John Stafford Smith.