The Eastern Railroad Company of Massachusetts was first chartered on April 14, 1836. The line followed the coastline, in contrast to the Boston & Maine's inland route through Massachusetts, and it served North Shore cities such as Lynn, Salem, Beverly, and Newburyport. In keeping with its coastal route, the Eastern Railroad chose to place its Boston terminus in East Boston, a short ferry ride from downtown Boston, rather than building tracks around Chelsea Creek, the Boston Inner Harbor, and the Mystic River into the city.