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.
Origins of the War of 1812 territory near Detroit, but these occupied territories were restored at the end of the war. In the United States, battles such as New Orleans and the earlier successful defence of Baltimore (which inspired the lyrics of the U.S. national anthem, The Star-Spangled Banner) produced a sense of euphoria over a "second war of independence" against Britain. It ushered in an "Era of Good Feelings", in which the partisan animosity that had once verged on treason practically vanished. Canada also emerged from the war with a heightened sense of national feeling and solidarity. Britain, which had regarded the war as a