The Frederick and Pennsylvania Line railroad ran from Frederick to the Pennsylvania–Maryland State line, a/k/a Mason–Dixon line. Chartered in 1867, construction began in 1869 and the line opened October 8, 1872. However, it defaulted on its interest payments in 1874 and acquired by the Pennsylvania Railroad in 1875, which formed a new division to operate the rail line. In the spring of 1896, the Frederick and Pennsylvania Line railroad was liquidated in a judicial sale to the Pennsylvania Railroad for $150,000. The railroad survived through mergers and the Penn-Central bankruptcy. However, the State of Maryland acquired the Frederick and Pennsylvania Line in 1982. As of 2013, all but two miles () at the southern terminus at Frederick still exist, operated by either the Walkersville Southern, or the Maryland Midland Railway (MMID) railroads.