Li Rui, a doctor of history, traveled back to 905 AD and became the puppet emperor Li Wei after the Baimayi Incident. Facing the death chess game laid out by the powerful minister Zhu Quanzhong, he used his thousand-year wisdom as his sword, kept a low profile and pretended to be patient. In the cage of the deep palace, he fought wits with traitors, joined forces with each other, and ignited a spark in despair, vowing to reverse the situation and help the Tang Dynasty!