A network of the Underground Railroad ran north along the coast from Boston to Salem, where it split into three trails; one continued through Beverly, Ipswich, Newburyport and West Newbury to Amesbury where escaped slaves were escorted into New Hampshire.