Residents of evacuated Whaley Bridge have been told it is safe to return to their homes.
Derbyshire Police said stability of the dam wall at Toddbrook Reservoir had been achieved at 1pm on Wednesday.
More than 1,500 people had been evacuated from the Derbyshire town since Thursday following heavy rain, although a small number refused to leave their properties.
Police allowed 55 households in the Horwich End area of the town to return home following a public meeting on Tuesday afternoon after the target water level was reached.
After allowing residents to return home, Deputy Chief Constable Rachel Swann said the danger posed by the dam “which would have destroyed homes and livelihoods could not be underestimated”.
She continued to say further work will be done to determine the damage caused to the dam wall and what the future holds for the structure.
Swann said: “The hard work and dedication to achieve this has been quite simply incredible and means that I am now able to lift the evacuation order placed on Whaley Bridge and the surrounding area.
“At the forefront of our thoughts are the communities affected by this incident who have been steadfast in the face of the peril that lay behind that dam wall.
“The danger posed by the millions of tonnes of water, which would have destroyed homes and livelihoods, could not be underestimated.
“Over the coming days and weeks further work will be completed to ascertain the damage caused to the dam wall and what actions are required for the future. We must not forget that the dam is broken.
“The Environment Agency has confirmed that the measures remaining in place at the dam will be able to manage the levels of rain forecasted, modelling against a number of scenarios.
“With this, and confirmation of the effectiveness of the work to repair the damage done and reduce the water coming into the reservoir, I am able to confirm it is safe for people to go back to their homes.”
The Environment Agency said there is still “significant” work to be done to bring the dam to a condition where “long term safety can be assured”.
Bill Derbyshire from the Environment Agency said: “We would like to thank residents for their patience and understanding during this incident.
“We have reviewed the Canal and River Trust Management Plan. The Environment Agency believes as long as all provisions are acted on this will give sufficient warning to residents.
“The Toddbrook dam requires significant engineering works to bring it to a condition where its long-term safety can be assured. The Environment Agency expect the Canal and River Trust to do the necessary investigations and engineering work to make the dam safe and protect the community.
“The Environment Agency will continue to work with partners to ensure the Canal and River Trust is able to maintain the reduction of water and to pump water out of the reservoir.
“The multi-agency work means we are in a better position to react to any risks from the dam and any rainfall that may cause local flooding.”
On Thursday morning, Derbyshire Fire and Rescue Service said the reservoir was at around 12-15% capacity after more water was pumped out overnight.
We know everyone is suffering under the Tories - but the Canary is a vital weapon in our fight back, and we need your support
The Canary Workers’ Co-op knows life is hard. The Tories are waging a class war against us we’re all having to fight. But like trade unions and community organising, truly independent working-class media is a vital weapon in our armoury.
The Canary doesn’t have the budget of the corporate media. In fact, our income is over 1,000 times less than the Guardian’s. What we do have is a radical agenda that disrupts power and amplifies marginalised communities. But we can only do this with our readers’ support.
So please, help us continue to spread messages of resistance and hope. Even the smallest donation would mean the world to us.