Tensions between the United States and Great Britain increased during the first decade of the 19th century due to issues involving trade and impressment of American sailors. Battling Napoleon on the Continent, Britain sought to block neutral American trade with France. In addition, the Royal Navy utilized a policy of impressment which saw British warships seize sailors from American merchant vessels. This resulted in incidents such as the Chesapeake-Leopard Affair which were affronts to the United States' national honor. The Americans were further angered by increased Native American attacks on the frontier which they believed the British to be encouraging. As a result, Pres. James Madison asked Congress to declare war in June 1812.
With the outbreak of war, the United States began mobilizing forces to invade Canada. At sea, the fledgling US Navy quickly won several stunning victories beginning with USS Constitution's defeat of HMS Guerriere on August 19 and Capt. Stephen Decatur's capture of HMS Macedonian on October 25. On land, the Americans intended to strike at several points, but their efforts were soon put in jeopardy when Brig. Gen. William Hull surrendered Detroit to Maj. Gen. Isaac Brock and Tecumseh in August. Elsewhere, General Henry Dearborn remained idle at Albany, NY rather than march north. On the Niagara front, Maj. Gen. Stephen van Rensselaer attempted an offensive but was defeated at the Battle of Queenston Heights.
The second year of war saw American fortunes around Lake Erie improve. Building a fleet at Erie, PA, Master Commandant Oliver H. Perry defeated a British squadron at the Battle of Lake Erie on September 13. This victory allowed Maj. Gen. William Henry Harrison's army to retake Detroit and defeat British forces at the Battle of the Thames. To the east, American troops successfully attacked York, ON and crossed the Niagara River. This advance was checked at Stoney Creek and Beaver Dams in June and American forces withdrew by year's end. Efforts to capture Montreal via the St. Lawrence and Lake Champlain also failed following defeats at the Chateauguay River and Crysler's Farm.
Having endured a succession of ineffective commanders, American forces on the Niagara received capable leadership in 1814 with the appointment of Maj. Gen. Jacob Brown and Brig. Gen. Winfield Scott. Entering Canada, Scott won the Battle of Chippawa on July 5, before both he and Brown were wounded at Lundy's Lane later that month. To the east, British forces entered New York but were forced to retreat after the American naval victory at Plattsburgh on September 11. Having defeated Napoleon, the British dispatched forces to attack the East Coast. Led by VAdm. Alexander Cochrane and Maj. Gen. Robert Ross, the British entered the Chesapeake Bay and burned Washington DC before being turned back at Baltimore by Fort McHenry.
With Britain beginning to bring the full weight of its military might to bear and with Treasury near empty, the Madison Administration began peace talks in mid-1814. Meeting at Ghent, Belgium, they ultimately produced a treaty which addressed few of the issues that had led to the war. With the conflict at a military stalemate and the reemergence of Napoleon, the British were happy to agree to a return to status quo ante bellum and the Treaty of Ghent was signed December 24, 1814. Unaware that peace had been concluded, a British invasion force led by Maj. Gen. Edward Pakenham prepared to attack New Orleans. Opposed by Maj. Gen. Andrew Jackson, the British were defeated at the Battle of New Orleans on January 8.