Though neither the British nor the Americans gained or lost territory during the War of 1812, the conflict had many results, including the establishment of the Canadian border, the end of British influence among the northwest Indians, and the demise of the Federalist Party due to its anti-war stance. It also boosted American patriotism and self-confidence, and led to a time of prosperity known as the "Era of Good Feelings."
In the early nineteenth century, Great Britain and Napoleon's France were at war, and commercial traffic of the United States was caught in the middle. Great Britain's Royal Navy infuriated the U.S. by capturing American ships and forcing their seamen to serve on British ships. As a result of this and Britain's inciting of Native Americans in the northwest to be hostile toward settlers, President Madison declared war on Britain. Various states and political parties were starkly divided on the issue of the war. However, the U.S. almost immediately attacked Canada. Battles followed on the Great Lakes and up and down the U.S. eastern coastline. During the conflict, the British burned the city of Washington D.C. and the White House to the ground.
After negotiations, the conflict was resolved with the Treaty of Ghent. In early 1815, unaware that the treaty had already been signed, British forces attacked New Orleans. They were repelled by future president Andrew Jackson and his makeshift army, leaving the United States with a feeling of victory. In reality, over the course of the entire war, the United States and Britain had fought to a stalemate.