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.