More than 180,000 people in northern California have been told to evacuate their homes after both overflow channels at the tallest dam in the US were found to be damaged.
The emergency spillway of the 770ft (230m) tall Oroville Dam was close to collapse, officials said.
The excess water has now stopped flowing.
However, late on Sunday, Butte County Sheriff Kory Honea said the evacuation orders remained in place.
Water levels in the reservoir have risen following heavy rain and snow after years of severe drought.
It is the first time that Lake Oroville, which lies 65 miles (105km) north of Sacramento, has experienced such an emergency in the dam’s near 50-year history.