Born in New Hampshire in 1782, Webster established a successful legal practice in Portsmouth, New Hampshire after undergoing a legal apprenticeship. He emerged as a prominent opponent of the War of 1812 and won election to the United States House of Representatives, where he served as a leader of the Federalist Party. Webster left office after two terms and relocated to Boston, Massachusetts. He became a leading attorney before the Supreme Court of the United States, winning cases such as "Dartmouth College v. Woodward", "McCulloch v. Maryland", and "Gibbons v. Ogden". Webster returned to the House in 1823 and became a key supporter of President John Quincy Adams. He won election to the United States Senate in 1827 and worked with Henry Clay to build the National Republican Party in support of Adams.