Lin Xiaole, a modern social worker, dies suddenly after staying up late to finish a manuscript. When he opens his eyes, he transforms into Li Goudan, a poor scholar from the Dawu Dynasty. Not only is he forced to take part in the cheating imperial examination, but he is also inexplicably squeezed into a contest to recruit a bride. Seeing the two princes vying to be the husband-in-law of the queen, Zhao Tielan, he was kicked to the stage. With his coquettish skills of throwing sand and smashing bricks, he became the royal son-in-law who was the laughing stock of the entire dynasty.