John Stafford Smith - wikipedia John Stafford Smith For other people named John Smith, see John Smith ( disambiguation ). John Stafford Smith ( 1750 - 03 - 30 ) 30 March 1750 Gloucester, England 21 September 1836 ( 1836 - 09 - 21 ) ( aged 86 ) London, England Nationality British Occupation Composer Known for Composed `` The Anacreontic Song '', later adopted as the tune of the national anthem of the United States John Stafford Smith ( 30 March 1750 -- 21 September 1836 ) was a British composer, church organist, and early musicologist. He was one of the first serious collectors of manuscripts of works by Johann Sebastian Bach. Stafford Smith is best known for writing the music for `` The Anacreontic Song '', which became the tune for the American patriotic song `` The Star - Spangled Banner '' following the War of 1812, and in 1931 was adopted as the national anthem of the United States. Contents 1 Early life and education 2 Career 3 Death 4 Legacy 4.1 American national anthem 4.2 Luxembourger national anthem 5 References 6 Further reading 7 External links Early life and education Smith was baptised in Gloucester Cathedral, England, on 30 March 1750, the son of Martin Smith, organist of Gloucester Cathedral from 1743 to 1782. He attended the Gloucester cathedral school, where he became a boy - singer. He furthered his career as a choir boy at the Chapel Royal, London, and also studied under the famous Dr. William Boyce. Career By the 1770s he had gained a reputation as a composer and an organist. He was elected as a member of the select Anacreontic Society which boasted amongst its membership such persons as Samuel Johnson, James Boswell and Sir Joshua Reynolds. In the 1770s, Smith composed music for the society 's constitutional song entitled `` To Anacreon in Heaven '' ( The Anacreontic Song ). The words were by Ralph Tomlinson ( 1744 -- 1778 ) president of the society, and were inspired by the 6th - century BC Greek lyric poet, Anacreon, who wrote odes on the pleasures of love and wine. The song became popular in Britain and also America following the establishment of several Anacreontic Societies there. Smith never married. Smith later became a Gentleman of the Chapel Royal in 1784, organist for the Chapel Royal in 1802 and Master of the Children in 1805. he also became lay - vicar of Westminster Abbey. He was organist at the Three Choirs Festival held at Gloucester in 1790. Smith is considered to be the first Englishman to be a serious antiquarian and musicologist. He began by publishing his A Collection of English Song in 1779 which musicologist Nicholas Temperley called `` perhaps the first scholarly edition printed in England. '' Smith 's library included the Old Hall Manuscript, Drexel 4175, as well as a copy of Ulm Gesangbuch from 1538 that had belonged to Johann Sebastian Bach. He also collected works that dated back to the 12th century including some Gregorian chants. His publication Musica Antiqua ( 1812 ) included musical scores of works by Jacob Obrecht, Adrian Willaert, Jacob Clemens and Cristóbal de Morales with historical notes on each piece. According to Vincent Duckles, Smith 's major contribution was `` to direct the attention of his readers to the importance of source studies. '' Death John Stafford Smith 's memorial in Gloucester Cathedral Smith died in 1836 at the age of eighty - six, his death allegedly caused by a grape - pip lodged in his windpipe. He is buried in Gloucester Cathedral and has a memorial plaque there, above which are hung the Union Jack and Stars and Stripes. Legacy American national anthem In 1814, Francis Scott Key wrote the poem `` Defence of Fort M'Henry '' ( later re-titled, `` The Star - Spangled Banner '' ), which came to be sung to the tune of Stafford Smith 's `` Anacreon ''. Congress officially designated the song the national anthem of the United States in 1931. Luxembourger national anthem The music of `` Anacreon '' was also temporarily the national anthem of Luxembourg, until the anthem 's replacement by Ons Heemecht in 1895. References Jump up ^ Morrison, Chris. `` John Stafford Smith ''. AllMusic. Retrieved 25 July 2012. John Stafford Smith has been called ' virtually the first English musicologist. '... ( He ) remains a significant figure in American history as the composer of the tune that Francis Scott Key adapted into `` The Star - Spangled Banner '', the national anthem of the United States. ^ Jump up to : Nicholas Temperley, `` Smith, John Stafford, '' Oxford Music Online / Grove Music Online, accessed 29 December 2015 ( access by subscription ). Jump up ^ `` John Stafford Smith ( 1750 -- 1836 ) -- Find a Grave ''. findagrave.com. Retrieved 4 December 2013. Jump up ^ `` John Stafford Smith : Composer of the Star Spangled Banner ''. Gloucestershire Portal. Archived from the original on 11 July 2007. Retrieved 25 July 2012. Further reading Johnson, Keith. `` AMG AllMusic Guide : Pop Artists : John Stafford Smith ''. Answers. Retrieved 25 July 2012. Moss, Phillip ( 2005 ). Historic Gloucester : An Illustrated Guide to the City & Its Buildings. Stroud, England : Nonsuch Publishing. ISBN 9781845880774. OCLC 318953639. `` Material relating to John Stafford Smith ( search ) ''. Special Collections Department, University of Glasgow. Retrieved 25 July 2012. External links Works by John Stafford Smith at Project Gutenberg Works by or about John Stafford Smith at Internet Archive Free scores by John Stafford Smith at the International Music Score Library Project ( IMSLP ) Free scores by John Stafford Smith in the Choral Public Domain Library ( ChoralWiki ) Free John Stafford Smith sheet music from the Ball State University Digital Media Repository Cultural offices Preceded by Samuel Arnold First Organist of the Chapel Royal 1802 -- 1836 Succeeded by Thomas Attwood Preceded by Edmund Ayrton Master of the Children of the Chapel Royal 1805 -- 1817 Succeeded by William Hawes VIAF : 7575484 LCCN : n81126823 ISNI : 0000 0001 1556 2442 GND : 119006960 BNF : cb13899871q ( data ) MusicBrainz : 8559b6be - dc18 - 4df1 - 9a20 - 7e84487f4013 NLA : 36339908 BNE : XX4756289 IATH : w61836pg Retrieved from `` https://en.wikipedia.org/w/index.php?title=John_Stafford_Smith&oldid=777229666 '' Categories : 1750 births 1836 deaths 18th - century classical composers 18th - century English people 19th - century classical composers 19th - century English people British classical composers British male classical composers British classical organists British musicologists Burials at Gloucester Cathedral Classical - period composers Gentlemen of the Chapel Royal Glee composers Musicians from Gloucestershire National anthem writers People educated at The King 's School, Gloucester People from Gloucester 18th - century keyboardists British antiquarians The Star - Spangled Banner Hidden categories : Use dmy dates from July 2012 Use British English from July 2012 Pages using infobox person with unknown parameters Articles with hCards All articles with unsourced statements Articles with unsourced statements from October 2013 Articles with Project Gutenberg links Articles with Internet Archive links Composers with IMSLP links Articles with International Music Score Library Project links Wikipedia articles with VIAF identifiers Wikipedia articles with LCCN identifiers Wikipedia articles with ISNI identifiers Wikipedia articles with GND identifiers Wikipedia articles with BNF identifiers Wikipedia articles with MusicBrainz identifiers Wikipedia articles with NLA identifiers Wikipedia articles with SNAC - ID identifiers Talk Contents About Wikipedia Wikisource Català Dansk Deutsch Español Français Italiano Magyar 日本 語 Português Русский Edit links This page was last edited on 26 April 2017, at 00 : 04. Text is available under the Creative Commons Attribution - ShareAlike License ; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia ® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. About Wikipedia

Question: who composed the music to the star spangled banner
Answer: John Stafford Smith