The story tells the story of Shen Lanxi, a modern lawyer who accidentally traveled to the Yongzheng period of the Qing Dynasty and became close friends with Zhen Huan, a beautiful lady who entered the palace at the same time. With the knowledge of modern people, the thinking ability of a lawyer and the "foreknowledge" of history, she has become the most special "strategist" around Zhen Huan. She helped Zhen Huan avoid danger time and time again in the turbulent harem, from avoiding favor to protecting herself to being favored, and finally assisted her to ascend to the position of noble concubine. However, when the trajectory of history is gradually changed, Shen Lanxi herself is trapped in the whirlpool of emotion and survival. She must use her own way to find a way out for the two of them in this cannibal palace and find their own destination.