At the Lantern Festival, the scholar Zhang Junrui (played by Ron Ng) and Hongniang (played by Myolie Wu), the maid of the prime minister's daughter Cui Yingying (played by Michelle Ye), each pick up one half of a pair of mandarin duck clasps, but alas, the two lovers never realize it. Zhang Junrui's outstanding literary talent, displayed at the festival, captivates Cui Yingying, and Hongniang also takes quite a liking to him. Later, by chance, Junrui encounters bandits attempting to abduct Cui Yingying; he risks his life to save her and preserves her honor, and Prime Minister Cui promises to betroth Yingying to Junrui. Unexpectedly, the prime minister's wife looks down on Junrui's humble origins and insists that he must pass the imperial examination before he can marry Yingying. So Junrui moves into the Western Wing, studies hard, and waits for the exam to arrive. Meanwhile, the reigning emperor, Emperor Dezong of Tang, disguises himself as a wealthy young gentleman named Wang Wenbin and travels about. He encounters the lovely Cui Yingying, is captivated by her beauty, and tries every means to get close to her and amuse her. Yingying initially finds Wang Wenbin quite dull, but through their interactions she gradually falls for him. Hongniang, too, in her dealings with Junrui, gradually comes to like him. Can this love quadrangle ultimately end happily for all?