Tong Xiao, a graduate student in the Department of Modern History, accidentally traveled to the Qin Dynasty and became Zhao Gao, who was about to enter the palace as a slave. Faced with the impending castration and the cruel palace environment, Tong Xiao relied on modern historical knowledge and Machiavellian thinking to make an astonishing decision at the moment of life and death - voluntarily accepting castration in exchange for the opportunity to get closer to the center of power. In the Qin Palace, he used his foresight of the direction of history to cleverly avoid political traps one after another, and gradually climbed up the ranks from the lowest palace slave. However, with the death of Qin Shihuang, he faced a dilemma: should he follow the historical trajectory and become a treacherous official who helped the emperor do evil, or should he use his knowledge to change the destiny of the Qin Dynasty? At the same time, his political game with Prime Minister Li Si, his complicated relationship with Prince Hu Hai, and his forbidden love with palace maid Ashue all made him constantly struggle between power and emotion. When the survivors of the Six Kingdoms secretly gather to overthrow the Qin Dynasty, Tong Xiao must make the final choice between personal ambition, family and country justice, and love. Behind all this, there is a bigger conspiracy waiting for him.