Instruction: Give me a summary of 1812 war
Context: The War of 1812 (18 June 1812 – 17 February 1815) was fought by the United States of America and its indigenous allies against the United Kingdom and its allies in British North America, with limited participation by Spain in Florida. Tensions originated in long-standing differences over territorial expansion in North America and British support for Native American tribes who opposed U.S. colonial settlement in the Northwest Territory.
Response: The War of 1812 (18 June 1812 – 17 February 1815) was fought by the United States of America and its indigenous allies against the United Kingdom and its allies in British North America, with limited participation by Spain in Florida. It began when the United States declared war on 18 June 1812. Although peace terms were agreed upon in the December 1814 Treaty of Ghent, the war did not officially end until the peace treaty was ratified by Congress on 17 February 1815.

Tensions originated in long-standing differences over territorial expansion in North America and British support for Native American tribes who opposed U.S. colonial settlement in the Northwest Territory. These escalated in 1807 after the Royal Navy began enforcing tighter restrictions on American trade with France and press-ganged men they claimed as British subjects, even those with American citizenship certificates. Opinion in the U.S. was split on how to respond, and although majorities in both the House and Senate voted for war, they divided along strict party lines, with the Democratic-Republican Party in favour and the Federalist Party against. News of British concessions made in an attempt to avoid war did not reach the U.S. until late July, by which time the conflict was already underway.
At sea, the far larger Royal Navy imposed an effective blockade on U.S. maritime trade, while between 1812 to 1814 British regulars and colonial militia defeated a series of American attacks on Upper Canada. This was balanced by the US winning control of the Northwest Territory with victories at Lake Erie and the Thames in 1813. The abdication of Napoleon in early 1814 allowed the British to send additional troops to North America and the Royal Navy to reinforce their blockade, crippling the American economy. In August 1814, negotiations began in Ghent, with both sides wanting peace; the British economy had been severely impacted by the trade embargo, while the Federalists convened the Hartford Convention in December to formalise their opposition to the war.

In August 1814, British troops burned Washington, before American victories at Baltimore and Plattsburgh in September ended fighting in the north. Fighting continued in the Southeastern United States, where in late 1813 a civil war had broken out between a Creek faction supported by Spanish and British traders and those backed by the U.S. Supported by U.S. militia under General Andrew Jackson, the U.S.-backed Creeks won a series of victories, culminating in the capture of Pensacola in November 1814. In early 1815, Jackson defeated a British attack on New Orleans, catapulting him to national celebrity and later victory in the 1828 United States presidential election. News of this success arrived in Washington at the same time as that of the signing of the Treaty of Ghent, which essentially restored the position to that prevailing before the war. While Britain insisted this included lands belonging to their Native American allies prior to 1811, as Congress did not recognize them as independent nations, the Americans did not comply with these provisions and the British made no effort to compel them to do so. The Native Americans were subsequently pushed west of the Mississippi River.