The stagecoach era ended abruptly when the Salem tunnel opened, and two days later on December 20, 1839, a train from Boston made its first passage through Ipswich. The opening of the railroad and the end of stagecoach travel led to the decline of Ipswich as one of the most important towns of Massachusetts.