It was opened by the Lancashire & Yorkshire Railway on 6 June 1848 and running powers were granted to the Great Northern Railway giving the latter company its initial access to Leeds and the former to Doncaster. The line subsequently became part of the newly established East Coast Main Line with the opening of a branch from Knottingley to Burton Salmon in 1850, which gave access to the York & North Midland Railway's line from Normanton to York. The opening of a direct line from Shaftholme Junction to York via Selby in January 1871 saw the end of regular express trains using the route, but it remained busy with goods traffic, mainly coal from various collieries along its length and continued to carry a local stopping service from Wakefield to Doncaster until closure to passengers on 27 September 1948. Today it remains open to carry coal traffic destined for the power stations at Ferrybridge, Drax and Eggborough and passenger trains diverted when either the ECML or Doncaster - Leeds line is closed for engineering work. It also carries a scheduled service operated by Grand Central.
The line today
The line now sees regular scheduled passenger services for the first time in more than seventy years, run by open-access operator Grand Central. These trains run between London King's Cross and Bradford Interchange via Doncaster, Knottingley, then on via Pontefract Monkhill, Wakefield Kirkgate, Mirfield, Brighouse and Halifax. The necessary track access rights were awarded to Grand Central by the ORR in January 2009. Grand Central commence services in the May 2010 timetable change, with the first services running as planned on 23 May 2010. The company subsequently announced that it wished to remove the stops at Pontefract at the next timetable change and divert its remaining services via Adwick to significantly reduce journey times. Permission for this from the ORR has not been forthcoming to date and so the present routing remains. Since December 2013 Grand Central services have added new stop at Mirfield. They have also added a fourth return service via this route. Infrastructure operator Network Rail carried out upgrade works at the southern end of the line between 2012 and 2014. A new flyover was constructed that permits freight services from the ex-West Riding and Grimsby Railway route between and to bridge the ECML and join the line just north of Askern Junction. This allows coal trains from the deep water import terminal at Port of Immingham to run directly to the Aire valley power stations without needing to join the ECML at Joan Croft Junction and use a section from there towards, thus freeing up capacity on a busy section of the route. The new flyover known as Doncaster North Chord, was opened in June 2014.
On Monday 3 December 1849, a rear collision with a vehicle resulted in a derailment. Four people were injured.
Haywood level crossing
This level crossing is a CCTV level crossing controlled by Norton Signal Box. On Thursday 26 February 2009, at around 1 pm, an HGV lorry smashed into the barriers, causing delays to freight services.
Norton level crossing
Norton level crossing is right next to Norton signal box which controls most of the level crossings on the Askern branch line. On Thursday 21 June 2012, a Land Rover smashed through the barriers after fleeing from a burglary, and smashed into two waiting cars at the other side of the crossing. This resulting in a full road closure, major delays to the freight services and to the London King's Cross to Bradford Interchange service. Four barriers were totally wrecked, so Network Rail replaced them. Further investigation of the level crossing crash is still underway.