In March, 1832, the Franklin Railroad was chartered by the Pennsylvania Legislature, and on January 16, 1837 by the Legislature of Maryland. The road was built from Chambersburg to Greencastle, Pennsylvania in 1837, and to Hagerstown, Maryland in 1841.