The eldest child of a wealthy Virginia planter, James Madison served as secretary of state under Thomas Jefferson, his longtime friend and political ally. He later succeeded Jefferson as a two-term president and guided the nation during the War of 1812.