Tens of thousands of people have been forced to flee their homes in Beijing as the remnants of Typhoon Doksuri dumped record rainfall on the city, grounding flights and flooding hundreds of roads.
Beijing issued its highest alert for flooding and landslides in a notice from authorities and warned that large parts of the suburbs "are at high risk of collapses, landslides and mudslides", in a rare red alert for flooding.
Chinese state media reported that two people had drowned in flooding in the capital.
Besides Beijing, heavy rain continued to soak the neighbouring city of Tianjin as well as Hebei province in the wake of Doksuri, which was downgraded to a tropical depression on the weekend.
Three of the five rivers that make up the Hai river basin rose to dangerous levels. Some houses were washed into the Yongding river, state media reported.
Doksuri is one of the strongest storms to hit China in years and caused widespread flooding over the weekend in the southern province of Fujian, driving hundreds of thousands of people from their homes.
Average rainfall in Beijing reached 14cm overnight, with the maximum recorded rainfall in Fangshan area hitting 50cm according to the city's observatory.

The observatory kept a red alert - the highest warning - for heavy rainfall in place while Beijing Hydrology Station upgraded its flood warning with more rain and river flooding forecast.
More than 31,000 people were moved to safety, work at more than 4,000 construction sites was halted, almost 20,000 buildings were inspected for damage, and scenic spots in the city were closed, media reported.
Both airports in the capital cancelled more than 180 flights this morning, with hundreds more delayed, according to flight tracking app Flight Master.
Railway authorities dispatched workers to send food including instant noodles, eggs and ham, and drinking water to train passengers who were stuck overnight.
As many as 358 roads in Beijing were affected by the rain as of today.
There was no reported damage or casualties, state media said, but south of Beijing, Doksuri's impact was more pronounced.
In northern Hebei province, a driver was missing after two trucks fell off a collapsed bridge in Baoding city yesterday, while a section of a railway bridge for freight in Shijiazhuang city was washed away in a swollen river, media reported.
While Doksuri continues to taper off, forecasters warned that typhoon Khanun was approaching and was set to strike China's densely populated coast this week.
Authorities said Khanun could inflict further damage to corn and other crops that have already been hit by Doksuri.