The Barnsley Coal Railway was a short railway which, when fully opened, ran between Stairfoot Junction, on the Mexborough to Barnsley line of the South Yorkshire Railway (SYR) and a triangular junction at Nostell on the line of the West Riding and Grimsby Railway (WR&GR).
The railway rights were purchased by the SYR in July 1863, just one year before that company was absorbed into the Manchester, Sheffield and Lincolnshire Railway.
Scheduled passenger services on the lined ended in 1930, and goods services in 1961.
In the parliamentary session of 1860/1 an act was applied for to incorporate a company, and construct a line from a junction with the South Yorkshire Railway (SYR) west of Ardsley railway station to Crigglestone. An act was passed in 1861, allowing the creation the Barnsley Coal Railway, with £40,000 of capital allowed to be raised by share issue, and £13,000 by loans. The first permitted section of line was from Stairfoot (west of Ardsley in Darfield) to Applehaigh (in Notton), 4 miles (6.4 km) long.
In 1863 an act was passed allowing the South Yorkshire Railway, which had subscribed £10,000 of the railway's capital, to take over the company.
In 1864 an act was obtained allowing a short 1.25 miles (2.01 km) extension to the Midland Railway's line near Barnsley; the new chord would have enabled the South Yorkshire company to take advantage of their recently acquired running powers to Wakefield and Leeds over the Midland's lines. This connecting line was not built.
The first section line served Rosa Colliery, and opened to traffic in January 1870.
In the session of 1873/4 the SYR's successor the Manchester, Sheffield and Lincolnshire Railway (MS&LR) obtained powers to build an extension from near the 1860s terminus at Notton, to a two way junction with the West Riding and Grimsby Railway northwest of Nostel station; also sought were powers for a junction from the line to the Midland's line near to the Barnsley Canal; and a second junction from Coal railway to SYR's Barnsley line, creating an extended triangular junction to that line.