Footage: Network Rail
Services are now running along the Salisbury to Romsey rail line following a landslip which left a 20m (66ft) section of track unsupported.
The line reopened on Saturday March 28, three days earlier than scheduled, for key workers and freight.
Network Rail said engineers had worked "24/7 to secure the line" and reopen it for "key workers needing to travel" and "critical freight deliveries".
Heavy rain during Storm Dennis led to flooding which caused the landslip on February 18.
Network Rail says it was a "challenging repair" as the field at the bottom of the embankment was flooded with water which was 1 metre deep.
Engineers had to build a road over the flood water so the team could get equipment as close to the line as possible.
I’d like to thank passengers and local residents for their patience while we’ve been working hard to get this vital link reopened. Many people’s journeys over the last few weeks will have been longer than expected and for that I can only apologise. Our priority was to make the railway safe and get the line open for passengers and freight as soon as possible."