In May 2005 the Chaki Wardak Dam nearly overflowed as its main and emergency floodgates were rusted shut after six years of dry weather. The UN Development Programme, the Afghanistan Emergency Trust Fund, and the Ministry of Energy and Water, took emergency action to address the threat.