Ancient cave records reveal that repeated heavy rainfall and flooding, not drought, caused the decline of the Shijiahe culture in China.