The Stour Valley Railway is a partially closed railway line that ran between Shelford, near Cambridge and Marks Tey in Essex, England. The line opened in sections between 1849 and 1865. The route from Shelford to Sudbury closed on 6 March 1967 leaving only the section from Sudbury to Marks Tey, known as the Gainsborough Line, in operation.