The fifteenth year of Yuanhe (820) was a critical period when the Tang Dynasty turned from prosperity to decline. Su Wan, the new top scholar, traveled through time to Xiao Mingyue, the daughter of the late Minister of Industry, and found that she was about to be framed as a slave in the palace. With modern knowledge and historical literacy, she managed step by step in the turbulent court and harem, and eventually became a virtuous queen who assisted the emperor in creating the "Yuanhe Zhongxing".