In 1853 the State of Maryland chartered the Baltimore and Potomac Rail Road Company to construct a railroad from the city of Baltimore via Upper Marlboro and Port Tobacco to a point on the Potomac River between Liverpool Point and the St. Marys River, and any branches of at most 20 miles in length.