A railway line in Caerphilly county which was closed following a landslide reopened on Friday afternoon.
Train services between Bargoed and Rhymney have resumed after engineers gave permission for trains to pass the 5m-wide hole which had opened up.
There will be slight delays to services on the Rhymney Valley line as trains will need to slow to 5mph as they pass the scene near Tirphil.
Trains services had originally expected to be suspended until Monday.
A replacement bus service and temporary timetable had been in operation.
Gwent Police received reports on Wednesday night that a large hole had opened up near the railway line and road at Station Row, Tirphil.
Wales and West Utilities said the incident was caused by storm water overwhelming a culvert.
A gas main was exposed but supplies to customers were not affected.