Su Beichen, a scholar from a poor family, was framed and imprisoned on his way to Beijing to take the exam. By chance, he got involved in palace intrigues and met the prince Chu Guihong and the clever female official Qin Chenger. The three of them have their own minds and use surprise and humor to resolve the crisis. In the turmoil of Chang'an, the little people relied on their wisdom and friendship to finally uncover the conspiracy of the powerful minister Lin Bochuan after escaping from death again and again. Su Beichen not only cleared his father's name, but also helped the prince seize power and consolidate the country. The seemingly absurd adventures are actually interconnected, not only involving life and death crises, but also full of light-hearted jokes. In the end, everyone returned to their places, Su Beichen chose his own ordinary life, and the world of Chang'an finally cleared up.