How does the concept of the mandate of heaven function in ancient Chinese government? EXPLAIN IN A SHORT SENTENCE

The concept of the mandate of heaven in ancient Chinese government asserted that the ruling dynasties were granted power and legitimacy from the gods as long as they governed justly and effectively.

Make it sound like a 7th grader

The mandate of heaven in ancient China was like a magic permission slip from the gods that said a ruler was in charge as long as they were good and fair.