The first 5 miles of the Essex Railroad from Salem west to Danvers opened on January 19, 1847, with a wye connecting to the Eastern Railroad at the north end of the tunnel, and the remainder to North Andover in 1848.