 The Foxborough Branch Railroad was incorporated in 1862 to provide a rail connection from Mansfield through Foxborough to Walpole.In 1867, it became the Mansfield and Framingham Railroad, with a new charter allowing it to connect to the Boston, Clinton and Fitchburg Railroad and Boston and Worcester Railroad at Framingham.The line was completed on May 1, 1870.