In the Dajing Dynasty, where the imperial power was monopolized, party struggles were fierce, border troubles were unresolved, and Jianghu forces were secretly involved in the court. Empress Su Buyu, who helped Xiao Jue to restore his power, was jealous of the emperor and was framed by the Baili family, and was given poisonous wine. Border general Baili Fuyou, who had had a crush on her for many years, used his blood to activate the magical medicine to help her fake her death. After Su Buyu lost her memory, she changed her name to Shanqing and was adopted by Zhongliang Shanzhong in Jiangnan.
In order to avenge his family's blood feud, Shan Qing showed his wits and entered the palace. He started by solving the murder case of the palace maid, but he was involved in the whirlpool of imperial power and nobles. She and Baili Fuyou met frequently. In order to protect her, he endured the alienation under the coercion of his family, and was willing to be seriously injured and misunderstood. She was misled by the conspiracy, and her inexplicable dependence on him turned into utter hatred.
Five cases progressed in succession, from the family corruption and frame-up, the unjust case of border weapons, to the old case of the Su family Zhao Xue and Baili Yao collaborating with the enemy to rebel. Shan Qing lost his weakness in the strife in the palace and gradually approached the truth. When the truth about Baili Fuyou's teenage crush, sacrifice of her heart, and years of guarding was revealed, her memory revived and she was intertwined with regret. In the end, Shanqing joined forces with King Qin to quell the rebellion, killed the tyrant, ascended the throne as empress, and reunited with Baili Fuyou. Using the mountains and rivers as evidence, they made the promise of unity.