Selby was the location for a number of junctions to other lines, and other facilities. A branch from the Hull line (near Barlby to Market Weighton) opened in 1848. (see Selby and Market Weighton Railway) The line ran from Cliffe junction east of the Ouse south of Barlby, around a mile east of Selby. The Cawood, Wistow and Selby Light Railway (CW&SLR) was opened in 1898 linking the Leeds & Selby Railway to the village of Cawood. Until 1904 the line had a separate station, Brayton Gates, 1 mile west of Selby. The line was predominantly used for agricultural traffic but also carried passengers until 1930, its final closure taking place in 1960. The Selby to Goole Line opened in 1910, ran via the villages of Barlow, Drax and Rawcliffe to Goole. The line closed in 1964 as a result of the Beeching report. A short section of the line was used to access a ballast tip near Barlow until 1983. In the mid 20th century the 'Loop Line' was converted into a triangle junction by the addition of a short chord between the Selby-Doncaster and Selby-Leeds lines. In 1983 the Selby Diversion of the East Coast Main Line was opened, avoiding the area around Selby due to possible subsidence from the drift mining works of the Selby Coalfield. As a result, Selby ceased to be a through route on the ECML. The 1871 line from Selby to York was closed on 24 May 1983 and in 1989 was converted into a cycle track which now forms part of route 65 of the National Cycle Network. The line south to Temple Hirst Junction was retained – it is in regular use for both passenger & freight traffic and also serves as a diversionary route for Doncaster to Hull services if the line via Goole is closed for any reason. Engine sheds and industrial branches An engine shed was built 1870–2, in the V of the junction between the lines to Doncaster and Leeds. The shed was a standard NER design roundhouse by Prosser in a square overall shed, with 20 tracks. The shed was extended to a similar extent in 1896–8 with an adjacent square shed to a design by Bell. In around 1900 a short "Loop Line" was built south of the station, altering the path to the Leeds line by forming a junction on the Doncaster line further