Scottish Water said the sewers were clogged with solidified cooking fat
Residents in East Kilbride, South Lanarkshire, have been warned not to pour cooking fat down the sink after blockages led to flooding in the town.
Scottish Water said it had completed an extensive flushing and cleaning of the waste water network.
Local people raised concerns earlier this year when raw sewage leaked from drains in Kirktonholme Park and on Lindores Drive.
The water agency said fat and sanitary waste had clogged up the sewers.
Stevie Ross of Scottish Water said: "After CCTV surveys of the affected area, a programme of work to remove the blockages was carried out.
"An extensive de-greasing and cleaning operation has been ongoing for several weeks."
Rob Mustard, general manager for waste water, added: "We would advise all East Kilbride residents to bag and bin all grease and cooking fats once they have been safely allowed to cool.
"Fat clogs sewers and pumping stations, leading to sewage overflows and potentially damaging the environment."
Scottish Water said 55% of all sewer blockages were caused by people disposing of cooking fat down their sink.
In South Lanarkshire, Scottish Water is carrying out a £95m programme of upgrades and refurbishments to its network.