 He declined to be a candidate for reelection in 1802.Upham was a member of the New Hampshire House of Representatives from 1804 to 1813 and again in 1815.He served as Speaker of the House in 1809 and 1815.