After transmigrating into the body of a poor scholar, the protagonist finds himself in a home with nothing. Wan'er is injured while gathering herbs, and he uses his medical knowledge to treat her. They take comfort in each other on a rainy night, their feelings deepen, and they become husband and wife in truth, promising to spend their lives together. He studies Tang poetry and enters a poetry gathering, astonishing everyone with his talent. He makes soap and perfume to improve their lives. At the prefectural examination, he passes as a xiucai, and his policy essay dazzles the examiners. He encounters Princess Changle and treats her chronic illness. The two exchange poetry, and affection quietly blossoms between them. When Wan'er learns about the princess, she gives them her support. He befriends Princess Gaoyang, and the two become a bickering but affectionate pair. He treats Princess Jinyang, earning her trust and dependence.