A special election was held in New Hampshire's at-large congressional district on August 28, 1797, to fill a vacancy created by the resignation of Jeremiah Smith (F) on July 26 of the same year. Smith had been appointed United States Attorney for the District of New Hampshire.