Li Ye is a low-level employee at an internet company in Bincheng. Since childhood, she has worn an ancient jade peace-lock passed down through her family. After a flood, she is accidentally swept into a time tunnel and transmigrates to ancient times. She is rescued by Xia Liangzhou, the second prince of the Western Xia state, who is traveling incognito as a doctor. In the State of Beichen, she becomes a famous chef. Hoping to find a way home, she agrees to take the place of a Western Xia princess in a marriage exchange, becoming a sacrifice in the political marriage between Western Xia and Beichen. In this strange time and place, she meets Li Jin'an, who loves her with his whole life. Together, they endure countless hardships and finally bring peace to both states. But instead of a reward, they are accused by Beichen's new ruler, Li Hongtu, of "debauching the imperial harem." Throughout history, emperors have never tolerated ministers whose achievements overshadow their own. In their moment of crisis, Li Ye discovers how to use the peace-lock to activate the "Key of Time" and brings Li Jin'an back with her. From then on, the two live happily ever after...