The Star-Spangled Banner was also taken from a drinking song:
“The original song that used the melody was To Anacreon in Heaven, written sometime between 1760 and the late 1770s, expounding on the virtues of wine...The music was composed by John Stafford Smith
“...the famed Greek poet Anacreon...was particularly known for composing odes to merrymaking, women, and wine
“...the Star Spangled Banner...became the United States’ official national anthem...on March 3, 1931 when President Herbert Hoover signed a Congressional resolution into law to this effect. Before this happened, Hail, Columbia (‘Columbia’ being an alternate name for America particularly common in the 18th century) and My Country, ‘Tis of Thee were often more popularly used in that role.”