The story of a young scholar, Zhang Sheng, who went to the capital city to take the highest imperial examination. When he stayed in a temple, he met Cui Yingying, daughter of the then Prime Minister, and fell in love with her. At that time, a group of robbers besieged them. Yingying's mother declared that she would marry her daughter to whoever could save them. Zhang Sheng managed to do that with his friend's help. But Yingying's mother refused to keep her words because Zhang Sheng was poor. However, Yingying and Zhang Sheng loved each other very much. With the help of Hong Niang, Yingying's maid, they broke the traditional barrier.