During the Jinghe period of the prosperous dynasty, the heroine Shen Zhiyi was framed to death by the scumbag Xiao Chengyu and his stepsister in her previous life, and was reborn on the same day as the Hairpin Ceremony. In this life, she awakens to the mysterious space "Xuanji Pavilion", which contains lost medical skills, ancient books on military art and rare treasures. Coincidentally, the royal family was in turmoil, the prince was falsely accused of treason, and his youngest son (adopted son) became a prisoner. Shen Zhiyi took advantage of the situation and reached a contract with the cold-faced powerful official Xie Yanzhi.