Tang Bohu, a celebrated scholar in Hangzhou, encounters Qiu Xiang, a maidservant from the house of Prime Minister Hua, at a temple. Captivated by her beauty, he disguises himself as a temple caretaker to get nearer to the maiden. Cailian, the wife of Hua’s eldest son, is Bohu’s cousin. She makes a bet thatBohu would not be able to marry Xiang if he were a commoner.
Accepting the wager, Bohu, follows the people from the house of Hua and becomes a servant. In order to win the bet, Cailian makes a claim that Bohu’s real intention is just to dally with Xiang. At a birthday banquet, the two sons of the prime minister pass a literary test with Bohu’s help. Impressed by his talents, the prime minister’s wife decides to ask Bohu to stay and tutor her sons. Zhu Xiufeng, who has always adored Bohu, finds him at the prime minister’s house and blames him for being fickle. However, moved by his true love for Xiang, Xiufeng tells Bohu an ingenious way he can win Xiang’s love.
Bohu tells the prime minister’s wife that the house of Zhu has offered to employ him on favorable terms. To retain his services, the Hua family allows Bohu to marry any maid he chooses. Bohu chooses Xiang, but she refuses on grounds that he is just a flirt. Xiufeng finally returns to the house of Hua and explains toXiang that Bohu loves her. Finally, with Xiang’s better understanding of Bohu, the two get married in the prime minister’s house.