In the first year of the Duanping era under the Great Liang, Shen Cheng, the eldest legitimate grandson of the Shen clan of Luoyang, sees his father demoted to Lingnan for submitting a memorial criticizing the government. His mother accompanies his father, and the two are gone for eight years. His uncles eye the family estate hungrily, and only his grandmother shelters him.
After his grandmother dies, before the mourning period is even over, his uncles force him to hand over the ancestral home. His fourth uncle steps in and wins him a three-year reprieve: if Shen Cheng fails the imperial examinations within three years, he must "settle down under the clan's care." In name he is the eldest legitimate grandson; in reality, he will be living at someone else's mercy.
Shen Cheng returns to the Imperial Academy in the capital, where he and his two close friends, Lin Yuan and Zhou Lang, agree to sit the autumn examinations. Each has his own ambitions. Lin Yuan comes from a powerful family but worries that their prominence will make them a target. Zhou Lang is from a military family and longs to serve on the frontier. With no one to rely on, Shen Cheng can only strive to rise through his own efforts.
The examination halls are rife with anonymous answer sheets and cheating. Examiners and nobles collude behind the scenes, while deputy chief examiner Chen Xiang is torn between Yan Pingzhong's exacting standards and the demands of the powerful. Shen Cheng distinguishes himself through genuine talent, unaware that he has become a piece in a much larger game.
After entering officialdom, he meets reformers such as Fan Zhong'an and Han Zhongzhang, and joins the Qingli reforms in an effort to revitalize the court. But the reforms threaten vested interests, prompting a conservative backlash, the rupture of teacher-student bonds, and suspicion between ruler and ministers. Shen Cheng rises from a poor scholar to the heart of power, only to discover that the principles he once upheld cannot withstand the pull of profit and factional politics.
This is a political struggle over ideals and their corruption. There are no simple villains or heroes, only people caught in the game and swept along against their will. The power games of Bianjing never end.