When a ruler failed to provide against flooding or other disasters and the people went hungry due to the inability to farm or harvest and subsequently died of starvation by the thousands, unrest occurred which called into question the legitimacy given by heaven to the ruler to rule.