Xu Heyuan was a common man who lived a wonderful life in troubled times with humor and wisdom. Because he unintentionally deciphered the gossip in the palace, he was involved in the intrigues of the princes. Along the way, he met the court musician Gu Qingyin, his loyal friend Ma Afu, and the fierce pharmacist Su Waner, and together they faced the frame-up plotted by Liang Yuanhao, the son of the city lord, and various forces. In the laughter and curses, they experienced thousands of twists and turns of family, friendship, and love, and grew from little people in the market to legends who influenced a country. In the struggle and exploration of wittily solving difficulties and making mistakes, the troubled world was finally resolved with kindness and wisdom, the country returned to harmony, everyone has his own destiny, Xu He and Qingyin died in the market, and the story ended warmly.