A special election was held in Massachusetts's 12th congressional district in 1807 to fill a vacancy left by the resignation of Barnabas Bidwell (DR), who had been appointed Massachusetts Attorney General on July 13 of that year.
Bacon took his seat on November 2, 1807.