The Cambrian line will reopen to trains next month, Network Rail has said, pledging an investment of £2million to prevent further problems from flooding the line.
The line was forced to close after storms Dudley, Eunice and Franklin caused severe damage along the line in February.
There were 33 areas where track was washed out over a half-mile stretch of track, and since then trains on the line have been cancelled.
The flood left gaping holes under the tracks, which Network Rail engineers worked to repair.
Network Rail has now announced additional emergency funding of £2million to protect this section of the railway from extreme weather events in the future. While repairing the damage caused by the washouts, the engineers will install more than 5,000 tons of riprap on the embankment, along the railway line.
Before that can happen, however, more than 10,000 tonnes of material will need to be transported to the site to build a 700 meter long temporary access road.
Rock armor has been successfully deployed for flood control in other areas including the Conwy Valley Line and the Line of Steps, near Abergavenny.It acts as a barrier to prevent ballast which keeps the sleepers in place from being washed away by reducing the speed of the water and limiting its flow.
To reduce the impact on passengers, resilience works have been accelerated to run alongside repairs in the event of a storm, when the railway line is already closed. Other work will be carried out over the next few weeks, including refurbishing the culverts (drainage under the tracks), renewing the tracks and planting new hedges.
Buses continue to replace trains from Shrewsbury to Newtown. Train services will start in Newtown for those traveling further west.
Bill Kelly, Wales and Borders Route Director at Network Rail, said: “Climate change is happening here and now, so building a more resilient railway for Wales and Borders is an absolute priority.
“We know the Cambrian line is a social and economic lifeline for the communities it serves. Building on our work to raise the Black Bridge near Machynlleth and our £30 million investment in the Barmouth Viaduct, we are committed to protecting the future of this vital transport link.
“I would like to thank the passengers and the local community for their patience. Our teams are working day and night to complete this work as quickly and safely as possible.”