From Monday, January 6, the bridge over the railway will be closed to allow utilities such as gas, electricity and water to be removed from the bridge ahead of it being demolished and reconstructed.
To allow this work to take place safely, the road will remain closed until the end of the project in June 2020.
During this time, a clearly sign-posted diversion for motorists will be in place.
Pedestrian access will be maintained for the majority of the closure via a temporary footbridge.
A spokesman from Network Rail said: “Network Rail is working closely with Barnsley Council to keep disruption to a minimum. Hough Lane bridge was built in 1895 and the original bridge deck from this time is still in place.
“This now needs completely replacing and the new bridge will be stronger, as well as being wider, which will allow the pavements to be wider, improving the bridge for pedestrians. Network Rail would like to thank all those impacted for their patience whilst this vital work takes place.”