James Madison was president for eight years, he was republican. he was involved with the "War of Hawks" of 1811-1812, and the War of 1812.
When James Madison addressed his war message to Congress on June 1, 1812, he listed “a series of acts hostile to the United States as an independent and neutral nation.” In the prior decade, Great Britain began the practice of seizing American sailors, impressing them into the British navy, and capturing American ships and cargoes. Through a series of Orders in Council, Britain prevented the United States from trading with ports controlled by France. Madison also blamed Great Britain for inciting native tribes against the United States. Madison concluded by reminding Congress that under the Constitution, it was their decision to declare war. After a 79-49 vote in favor of war in the House of Representatives and a 19-13 vote in the Senate, war was declared against Great Britain on June 18.
Madison’s attempts to resolve disagreements with Britain peacefully was viewed by some in his own Republican party as a sign of weakness. A group of pro-war Republicans, led by Speaker of the House Henry Clay, argued that military force was the only option left to combat British imperiousness. These “War Hawks” were not a majority of the party, but over time, their influence acted on more skeptical party members.