
Ning Chen is raised in a mountain village, then brought into the capital as the son of Minister of Rites Ning Ziming. His half-brothers Ning Gan and Ning Xing, sons of Cheng Ruyue, call him an outsider and beat him, and the household wants him gone. Ning Chen has no standing in the capital, so he signs a battle poem as Lan Xing at a poetry contest at the Zhuangyuan Tower. The men there doubt that a nameless man wrote it, and General Chen carries the poem to the emperor. The emperor learns that Lan Xing is Ning Chen and takes a liking to him. Ning Chen keeps going back to see Yudie, a woman at the Ministry of Education, a house where women are sold into service. The emperor wants his daughter, Princess Huai'an, to marry Ning Chen.
Ning Chen, a young man raised in a mountain village, is brought into the capital as the son of Minister of Rites Ning Ziming. His half-brothers Ning Gan and Ning Xing, sons of Cheng Ruyue, who is Prime Minister Zuo's daughter, beat him and call him worthless. Ning Ziming orders the Western Courtyard sealed, but Ning Chen gets out and enters a poetry contest at the Zhuangyuan Tower under the name Lan Xing. General Chen, a woman general who has lost favor, reads his poem and takes it to the emperor.
The emperor learns that Lan Xing is Ning Chen and takes a liking to him, which puts Ning Ziming in trouble. Ning Ziming is punished and told to give up his post, and Cheng Ruyue pushes to pay Ning Chen to leave the Ning family. Princess Huai'an, the emperor's daughter, asks where the poet lives, while Ning Ziming tries to win his son back. Ning Chen turns him down and asks to be let go.
Lan Xing gives the officials three plans for the war on the border, and General Chen backs him. Ning Gan steps in to fight a bully who is hurting a woman at the Ministry of Education, and the emperor later sentences him to half a year of punishment. A plot to kill Lan Xing reaches the emperor, and General Chen saves him from an attack in the street. He is then held in the prison of the Investigation Department.
Ning Chen takes a post in the Investigation Department, where the procurator Pan Jinyi is to teach him the rules. At the Ministry of Education, Guo Jiu, the emperor's uncle, tries to take Nanzhi for the night, and Ning Chen fights him. Guo Jiu dies in the fight, and Ning Ziming disowns his son, calling him a tyrant. Yudie, a woman from the same house, pleads guilty and says she will die for Ning Chen.
Because his half-brothers fear he will take a share of the Ning family property, and Cheng Ruyue pushes to pay him to leave the household (episodes 1 and 16).
Yes. The evidence against him is found under the floor of Ning Chen's room, and he is put in the death cell (episodes 102 and 104).
Because Ning Chen is blamed for the fight with Guo Jiu, and Ning Ziming calls him a tyrant and throws him out of the Ning family (episode 47).
Yes. Guo Jiu dies in the fight at the Ministry of Education, and the court discusses it afterward (episodes 45 and 46).
Ning Chen is named the emperor's personal inspector, and a senior official offers him a place in his camp, which he turns down. Yudie cannot be freed without a pardon from the emperor or a payment of 100,000 taels in gold, so Ning Chen kneels before the emperor to ask for her. The emperor tells him to keep kneeling. The Five States send envoys to the capital, and the court must deal with them.
A cup of wine at a family dinner is found to be poisoned, and Pan Jinyi is called in to test it. An attempt on a princess in the street fails, and the Investigation Department searches the whole city. Princess Huai'an tells Ning Chen that she is willing to marry him. The Five States' envoys carry a war flag into the palace, and Ning Chen fights one of their men in the hall.
Prime Minister Zuo's men keep coming for Ning Chen, and he is taken to the police station for his own safety. At the peace talks the Five States' envoys set riddles, and Ning Chen answers them in front of the court. Ning Chen then signs a trade deal that will bring money to the treasury, and officials pledge silver for the war until the sums reach the millions of taels. A lock puzzle from the Five States is passed to Ning Chen, and a red-clad cannon is shown to the court.
Prime Minister Zuo is accused of using the sacred umbrella to control the court, and the evidence against him is found under the floor of Ning Chen's room. Zuo is put in the death cell, and Ning Ziming is put in prison for destroying the emperor's will. The emperor then gives Ning Chen two edicts, one for his marriage to Princess Huai'an and one for Yudie, and he may choose only one.
Ning Chen
The lead, a young man from a mountain village who is taken into the Ning family and writes poems as Lan Xing.
Ning Ziming
Minister of Rites and Ning Chen's father, who first sides with his legitimate sons and later tries to bring his son back.
Cheng Ruyue
Ning Ziming's wife and Prime Minister Zuo's daughter, and the mother of Ning Gan and Ning Xing, who pushes to have Ning Chen removed from the household.
Yudie
A woman at the Ministry of Education who becomes the center of Ning Chen's choices.
Princess Huai'an
The emperor's daughter, whom the emperor offers to Ning Chen in marriage.
Prime Minister Zuo
Cheng Ruyue's father and the most powerful minister, who plots against Ning Chen until his own evidence is found.
Ning Chen chooses Yudie over the marriage the emperor offers, and the emperor says he has passed the test. In the last episode Yudie is with him when a letter from the Five States arrives offering him a post, so the last offer on the table comes from the kingdom he has spent the series outwitting.