The story begins in the eleventh year of the Zhenguan era, when Ruyi (Fan Bingbing) takes part in the Tang dynasty palace selection and stuns the crowd with a performance of "Prince of Lanling Enters the Battle," catching the attention of Emperor Taizong Li Shimin (Zhang Fengyi). Yet just as fortune smiles on her, Ruyi is cruelly betrayed by scheming rivals and cast into the cold palace before she can even win the emperor's favor. A year later, Ruyi is released, and her standing in the palace rises steadily, bringing her love and glory—but also placing her in grave danger. Li Shimin, swayed by slander, turns away from Ruyi, and heartbroken, she shaves her head and becomes a nun, vowing to renounce all worldly ties. Yet the child in her womb gives her the resolve to return to the palace—a decision that costs her unborn child its life. Bent on revenge, Ruyi turns to Emperor Gaozong Li Zhi (Li Zhiting), only to develop a genuine bond with him. In the sixth year of the Yonghui era, Ruyi finally ascends the throne as empress, carving her way there through blood.