Battle of Baltimore Navy inspired Francis Scott Key to compose the poem "Defence of Fort McHenry", which later became the lyrics for "The Star-Spangled Banner", the national anthem of the United States of America. Future President James Buchanan served as Private in the defense of Baltimore. Until April 1814, Great Britain was at war with Napoleonic France, which limited British war aims in America. During this time the British primarily used a defensive strategy and repelled American invasions of the provinces of Upper and Lower Canada. However, the Americans gained naval control over Lake Erie in 1813, and seized parts of western Ontario.
The Star-Spangled Banner to the tune of a popular British song written by John Stafford Smith for the Anacreontic Society, a men's social club in London. "To Anacreon in Heaven" (or "The Anacreontic Song"), with various lyrics, was already popular in the United States. Set to Key's poem and renamed "The Star-Spangled Banner", it soon became a well-known U.S. patriotic song. With a range of 19 semitones, it is known for being very difficult to sing. Although the poem has four stanzas, only the first is commonly sung today. "The Star-Spangled Banner" was recognized for official use by the United States Navy in