Modern young man Chen Dawan accidentally "stumbles" and travels through the prosperous Bianjing of the Northern Song Dynasty. Ben was lucky enough to become a young master from a wealthy family, but the good times did not last long. His family was in a state of decline, and he was trapped in a brothel and struggled to survive. The road ahead was full of ups and downs, and he was determined to stand up in a desperate situation. The story has just unfolded, how will he survive the crisis and become the county magistrate? How can he govern the county and bring peace to the people, and meet an emperor in disguise? Faced with the temptation to pursue an official career in Beijing, why did he insist on staying in the county and become a generation of romantic officials?