Final answer:
James Madison was the president during the War of 1812.
Step-by-step explanation:
The president during the War of 1812 was James Madison. He served as the fourth president of the United States from 1809 to 1817. The War of 1812 was fought between the United States and Great Britain, and it was during Madison's presidency that the war took place.
Learn more about president during the War of 1812