Passenger and freight services will be able to run on the line between Kilmarnock and Barrassie from Monday.
The route had been closed for investigation and repair work after the hole was discovered on June 4 at Gatehead, near Kilmarnock.
Network Rail has been working closely with the Coal Authority given the rich mining heritage in the immediate area, but ground investigations have confirmed that the void wasn’t a mine shaft, or mining feature.
Excavations of the site uncovered an historic culvert lying underneath the railway which has now been replaced with a modern equivalent to allow the route to re-open safely.
Location: Gatehead
Original line: Kilmarnock and Troon Railway
Photographer: Network Rail
Contact photographer: Network Rail
Date: 07/2022
Image number: 81811