At the end of the Eastern Han Dynasty, the way of heaven collapsed, yin and yang were imbalanced, the resentment of the ancient gods revived, and the order of the three realms was disordered - the gods in heaven were unable to supervise, and the descendants of the ancient immortal sects, loose immortals, and evil forces secretly arranged their plans. Demons and ghosts took advantage of the chaos to cause havoc in the world. This was intertwined with the wars, eunuch monopoly, and separatist regimes of the princes in the late Eastern Han Dynasty, forming a pattern of "common chaos between humans and gods, and conflict among the three realms." The Zhang Jiao brothers obtained the secret code of ancient demons and used their grievances to enshrine gods to start the Yellow Turban Rebellion. They shouted "Heaven is dead, Huang Tian is here to stand", in an attempt to use demon power to subvert the Han Dynasty and reshape the order of the world.