A new flood barrier is being erected around a power station which was saved from flooding in Gloucestershire.
Walham substation was threatened by the floods
Soldiers and sailors worked through Monday night to save Walham substation, which helps supply power to hundreds of thousands of people in the county.
A semi-permanent barrier is now being built and could last for up to three years.
Most people now have power in the county, but hundreds of thousands are still without fresh water.
The battle for Walham switching station was won after pumps were kept running through the night.
National Grid spokeswoman Sarah Harris said afterwards: "We've worked extremely closely with the armed forces and fire brigade to stop the water from penetrating our site."
The director of electricity transmission at the National Grid, Nick Winser, also praised members of the armed forces and the fire service, who helped to keep the waters out.
Power cuts elsewhere in the county have taken out the Netheridge water treatment centre.
Generators are on site and Severn Trent said there was capacity to store waste water.