Scottish Water has completed £34.5m of upgrade works at its three wastewater sites in Dumfries and Castle Douglas, Scotland.
The works will protect the natural environment of the River Nith and River Dee, and connect more homes and businesses to the wastewater network.
Scottish Water invested £14m in the Troqueer treatment works in south-west Dumfries to increase its capacity to 50,000 people.
Sludge at the site will now be treated and recycled as a fertiliser and soil improver.
At the Dalscone facility, the firm spent £9m on improving protection for the River Nith and providing extra capacity for new homes and businesses.
An investment of £11.5m was made at Castle Douglas to reduce odours from the wastewater treatment works and to expand its capacity.
The firm will soon start a £5m programme to improve the Dalbeattie treatment works, according to the BBC.