How does the concept of the Mandate of Heaven function in ancient Chinese government?

and like btw make it short and like a 5th-6th grader puhlease!

The concept of the Mandate of Heaven was a belief in ancient China that the rulers were chosen by the heavens to lead. It was like a divine permission or blessing to be in power. The rulers had to be good and fair to their people, otherwise, they would lose this mandate and could be overthrown. It was kind of like a contract between the ruler and the heavens.