*Party division totals are based on election day results.
Democrats retained control of the Senate after the wartime 1846 elections, but Whigs took the House. They submitted a bevy of antiwar petitions including one by Illinois Representative Abraham Lincoln, who served his single congressional term in the 30th Congress (1847–1849). The Mexican–American War ended with the 1848 Treaty of Guadalupe Hidalgo, which added much of the present Southwest to the country. Shortly after the war ended, Massachusetts Representative John Quincy Adams, dubbed “Old Man Eloquent,” died in the Speaker’s Room in the Capitol after falling ill on the House Floor.