The series was adapted from Eryue He's historical novels, which are loosely based on historical events in the reigns of the Kangxi and Yongzheng Emperors in the Qing dynasty (1644–1911).