Transport chiefs have hailed the "mighty effort" to rebuild the earthquake-torn railway between Picton and Christchurch, as the last weld went into place near Rakautara, north of Kaikoura.
The massive 7.8 quake in Kaikoura in November 2016 wrought major damage, twisting train tracks, destroying bridges and tunnels and bringing down enormous slips.
More than 1500 workers had worked for nine months to get the track joined up again, KiwiRail Chief Executive Peter Reidy said.
"Over the whole project - road and rail - an average of 150,000 person hours are being worked each month. On the rail side 150km of line has been tamped and made ready for trains.
"Five thousand new concrete sleepers have been laid, the formation under 12km of track has been rebuilt, and 5km of track has been realigned."