Harvey’s floodwaters started dropping across much of the Houston area and the sun peeked through thinning clouds Wednesday in the first glimmer of hope in days for the besieged city. But the crisis was far from over, and the storm began to give up some of its dead.

The number of confirmed deaths rose to 21 after Beaumont police confirmed a second death in that city.

Authorities also found the submerged van in which six members of a Houston family, including four children, were believed to have died when their vehicle was swept off a bridge. The bodies of two adults were spotted inside in the murky water, authorities said.

“Unfortunately, it seems that our worst thoughts are being realized,” Harris County Sheriff Ed Gonzalez said.

While conditions in Houston appeared to improve, the disaster took a turn for the worse near the Texas-Louisiana state line.

The Texas communities of Beaumont and Port Arthur struggled with rising floodwaters and worked to evacuate residents after Harvey rolled ashore early Wednesday for the second time in six days, hitting southwestern Louisiana as a tropical storm with winds of 45 mph and heavy rain.

For much of the rest of the Houston area, forecasters said the rain is pretty much over and the water is already back within its channels in some places.

“We have good news,” said Jeff Lindner, a meteorologist with the Harris County Flood Control District. “The water levels are going down. And that’s for the first time in several days.”

Also, the water in two reservoirs that protect downtown Houston from flooding was likely to crest Wednesday at levels slightly below those that were forecast, officials said.

Nevertheless, many thousands of homes in and around the nation’s fourth-largest city were still swamped and could stay that way for days or longer.

Some Houston-area neighborhoods were still in danger of more flooding because of the risk of a levee breach. And officials said 911 call centers in the Houston area were still getting more than 1,000 calls an hour from people seeking help.

Authorities expect the death toll to rise as the waters recede and they are able to take full stock of the destruction wrought by the hurricane.

The dead include a man who tried to swim across a flooded roadway, a former football and track coach in suburban Houston and a woman who died after she and her young daughter were swept into a rain-swollen drainage canal in Beaumont. The child was rescued clinging to her dead mother, authorities said.

Harvey itself was “spinning down” and expected to weaken into a tropical depression sometime Wednesday, National Hurricane Center meteorologist Dennis Feltgen said. A tropical depression has winds of 38 mph or less.

The remnants of the hurricane are expected to move from Louisiana into Mississippi, Tennessee and Kentucky in the next few days, with flooding possible in those states.

“Once we get this thing inland during the day, it’s the end of the beginning,” Feltgen said. “Texas is going to get a chance to finally dry out as this system pulls out.”

Eugene Rideaux, a 42-year-old mechanic who showed up at evangelist Joel Osteen’s Houston megachurch to sort donations for evacuees, welcomed the reprieve from the rain.

He said he had not been able to work or do much since the storm hit, so he was eager to get out of his dark house and help.

“It’s been so dark for days now, I’m just ready to see some light. Some sunshine. I’m tired of the darkness,” Rideaux said. “But it’s a tough city, and we’re going to make this into a positive and come together.”

When Harvey paid its return visit to land overnight, it hit near Cameron, Louisiana, about 45 miles from Port Arthur.

Port Arthur found itself increasingly isolated as floodwaters swamped most major roads out of the city and spilled into a storm shelter with about 100 people inside. Motiva Enterprises closed its Port Arthur refinery, the largest in the nation, because of flooding.

Port Arthur Mayor Derrick Freeman posted on his Facebook page: “city is underwater right now but we are coming!” He also urged residents to get to higher ground and to avoid becoming trapped in attics.

In the Houston area, Harvey’s five straight of rain that totaled close to 52 inches, the heaviest tropical downpour ever recorded in the continental United States.

Harris County Judge Ed Emmett said 30,000 to 40,000 homes, perhaps more, may have been damaged.

“It could be more,” he told Houston’s KTRK-TV. “We just don’t know. A number are irreparable. We’ve got some difficult months and perhaps years ahead.”

Some 13,000 people have been rescued in the Houston area, and more than 17,000 have sought refuge in Texas shelters. With the water still high in places and many hard-hit areas still inaccessible, those numbers seemed certain to increase.

About 195,000 people have filed for financial assistance, and about $35 million in direct aid has been distributed — numbers expected to climb dramatically in coming days and weeks, the chief of the Federal Emergency Management Agency said.

“This is going to be an incredibly large disaster,” Brock Long said in Washington. “We’re not going to know the true cost for years to come. ... But it’s going to be huge.”

Harvey initially came ashore as a Category 4 hurricane in Texas on Friday, then executed a U-turn and lingered off the coast as a tropical storm for days, inundating flood-prone Houston.___Associated Press writers Frank Bajak and Michael Graczyk in Houston, Diana Heidgerd and David Warren in Dallas, Seth Borenstein in Washington and Tammy Webber in Chicago contributed to this report.