Zhang Ping is an impoverished orphan who comes from a provincial part of the country. He has come to Beijing in an attempt to take the civil service entrance examination but must eke out a living by making noodles to sell on the street. While he is unsophisticated in his manners and is something of a dreamer, he is exceptionally perceptive - and also quite nosy. That means he is naturally gifted when it comes to solving puzzles and getting to the bottom of mysteries.
Meanwhile, Lan Jue is a young, well-mannered minister who hides a secret from his youth that he does not want to reveal to anyone. As Lan Jue is going about his business, trying to solve a case, his path crosses with that of Zhang Ping. Despite some misunderstandings, Zhang Ping manages to help Lan Jue solve the case - although the former also inadvertently learns the latter's secret. But this incident turns into the beginning of a remarkable partnership.
The two men develop a close bond - despite their very different backgrounds. And together, they resolve to solve all manner of mysteries, including what really happened to Lan Jue's father - and rid the royal court of corruption once and for all!