 The Boston and Portland Railroad opened to Haverhill in 1840; it was merged into the Boston and Maine Railroad in 1840.A freight house was built soon after, and a second freight house in 1870; both structures (the earlier cut in half) are still extant.The B&M built a new passenger station in 1905 as part of a grade crossing elimination project; it was demolished in the 1960s.