Li Yihuan (Yang Zi) is a descendant of the former Ming Yongli court. She grew up in the Pearl Valley, where loyalists of the fallen Ming dynasty gathered, training in martial arts alongside her fellow disciples Zhu Cixuan (Li Jianqing, played by Mao Zijun), Xue Qingcheng (Shu Chang), Ye Mosheng (Han Chengyu), Fan Qianying (Sun Wei), and others under their masters. Once grown, Yihuan and her companions leave the Pearl Valley and, at their masters' bidding, seek to get close to Kangxi (Qin Junjie) in hopes of finding a chance to avenge their families. Yihuan and the young Kangxi go from bickering rivals to mutual affection, and finally to being forced into enmity. Their sincere feelings and the hatred of their families become the greatest conflict standing between them, while the other young men and women, bearing the heavy responsibilities entrusted to them by their elders, also experience their own loves and hatreds. In the end, Kangxi's philosophy of governing with benevolence and virtue moves Yihuan; she gives up her hatred and tries to persuade her companions to stop stirring up war and harming the common people for the sake of private vendettas. Ultimately, Yihuan decides to leave the palace, and she and Kangxi forget each other in the world while keeping each other in their hearts. Kangxi promises to be a wise ruler, and ultimately wins the hearts of the realm, ushering in the golden age of the Kangxi and Qianlong reigns.