James Madison
Military actions

Given the circumstances involving Napoleon in Europe, Madison initially believed the war would result in a quick American victory. Madison ordered three landed military spearhead incursions into Canada, starting from Fort Detroit, designed to loosen British control around American-held Fort Niagara and destroy the British supply lines from Montreal. These actions would gain leverage for concessions to protect American shipping in the Atlantic. Without a standing army, Madison counted on regular state militias to rally to the flag and invade Canada: still, governors in the Northeast failed to cooperate. The British army was more organized, used professional soldiers, and fostered an alliance with Native American tribes led by Tecumseh. On August 16, during the British siege of Detroit, Major General William Hull panicked, after the British fired on the fort, killing two American officers. Terrified of an Indian attack, drinking heavily, Hull quickly ordered a white tablecloth out a window and unconditionally surrendered Fort Detroit and his entire army to British Major-General Sir Issac Brock. Hull was court-martialed for cowardice, but Madison intervened and saved him from being shot. On October 13, a separate force from the United States was defeated at Queenston Heights, although Brock was killed. Commanding General Henry Dearborn, hampered by mutinous New England infantry, retreated to winter quarters near Albany, failing to destroy Montreal's vulnerable British supply lines. Lacking adequate revenue to fund the war, the Madison administration was forced to rely on high-interest loans furnished by bankers in New York City and Philadelphia.

In the 1812 presidential election, held during the early stages of the war, Madison was re-nominated without opposition. A dissident group of New York Democratic-Republicans nominated DeWitt Clinton, the lieutenant governor of New York and a nephew of recently deceased Vice President George Clinton, to oppose Madison in the 1812 election. This faction of Democratic-Republicans hoped to unseat the president by forging a coalition among Democratic-Republicans opposed to the coming war, as well as those party faithful angry with Madison for not moving more decisively toward war, northerners weary of the Virginia dynasty and southern control of the White House, and many New Englanders wanted Madison replaced. Dismayed about their prospects of beating Madison, a group of top Federalists met with Clinton's supporters to discuss a unification strategy. Difficult as it was for them to join forces, they nominated Clinton for President and Jared Ingersoll, a Philadelphia lawyer, for vice president. Hoping to shore up his support in the Northeast, where the War of 1812 was unpopular, Madison selected Governor Elbridge Gerry of Massachusetts as his running mate, though Gerry would only survive two years after the election due to old age. Despite the maneuverings of Clinton and the Federalists, Madison won re-election, though by the narrowest margin of any election since that of 1800 in the popular vote as later supported by the electoral vote as well. He received 128 electoral votes to 89 for Clinton. With Clinton winning most of the Northeast, Madison won Pennsylvania in addition to having swept the South and the West which ensured his victory.

After the disastrous start to the war, Madison accepted Russia's invitation to arbitrate and sent a delegation led by Gallatin and John Quincy Adams (the son of former President John Adams) to Europe to negotiate a peace treaty. While Madison worked to end the war, the United States experienced some impressive naval successes, by the USS Constitution and other warships, that boosted American morale. Victorious in the Battle of Lake Erie, the U.S. crippled the supply and reinforcement of British military forces in the western theater of the war. General William Henry Harrison defeated the forces of the British and of Tecumseh's confederacy at the Battle of the Thames. The death of Tecumseh in that battle marked the permanent end of armed Native American resistance in the Old Northwest and any hope of a united Indian nation. In March 1814, Major General Andrew Jackson broke the resistance of the British-allied Muscogee Creek in the Old Southwest with his victory at the Battle of Horseshoe Bend. Despite those successes, the British continued to repel American attempts to invade Canada, and a British force captured Fort Niagara and burned the American city of Buffalo in late 1813.

On August 24, 1814, the British landed a large force on the shores of Chesapeake Bay and routed General William Winder 's army at the Battle of Bladensburg. Madison, who had earlier inspected Winder's army, escaped British capture by fleeing to Virginia, though the British captured Washington and burned many of its buildings, including the White House. Dolley had abandoned the capital and fled to Virginia, but only after securing the portrait of George Washington. The charred remains of the capital signified a humiliating defeat for James Madison and America. On August 27, Madison returned to Washington to view the carnage of the city. Dolley returned the next day, and on September 8, the Madisons moved into the Octagon House. The British army next advanced on Baltimore, but the U.S. repelled the British attack in the Battle of Baltimore, and the British army departed from the Chesapeake region in September. That same month, U.S. forces repelled a British invasion from Canada with a victory at the Battle of Plattsburgh. The British public began to turn against the war in North America, and British leaders began to look for a quick exit from the conflict.

In January 1815, Jackson's troops defeated the British at the Battle of New Orleans. Just more than a month later, Madison learned that his negotiators had concluded the Treaty of Ghent on December 24, 1814, which ended the war. Madison quickly sent the treaty to the Senate, which ratified it on February 16, 1815. Although the overall result of the war ended in a standoff, the quick succession of events at the end of the war, including the burning of the capital, the Battle of New Orleans, and the Treaty of Ghent, made it appear as though American valor at New Orleans had forced the British to surrender. This view, while inaccurate, strongly contributed to bolstering Madison's reputation as president. Napoleon's defeat at the June 1815 Battle of Waterloo brought a final close to the Napoleonic Wars and thus an end to the hostile seizure of American shipping by British and French forces.
oulipo:avoid_letter[a]