After returning to the inn, Wukong discussed matters with Zhu Bajie. At the next morning's court session, Sun Wukong stormed into the Golden Throne Hall and shouted at the Imperial Father-in-law: 'You fiend, surrender your true form at once!' The Imperial Father-in-law, terrified, fought with Wukong. Wukong struck him with his staff, and the Imperial Father-in-law revealed his true form as a white deer. The king was so frightened that his soul scattered.
Unable to resist, the white deer spirit transformed into a gust of wind and fled. Wukong pursued him closely to the coast of the Eastern Sea, where he coincidentally met the Southern Pole Immortal. The Immortal said with a smile: 'Great Sage, calm your anger. This is my mount, the white deer. Out of mischief, it descended to the mortal world and became a demon, alarming the holy monk. I hope you will forgive it.' It turned out that the beauty in the ice cellar was also a transformation of the white deer spirit; the old Star of Longevity's attendant had had her true energy taken away.
Though Wukong felt displeasure, the Immortal subdued the white deer and revived the attendant. The king wept with gratitude and thanked the master and disciples. Wukong also ordered the king to stop taking children's hearts and livers, disband the children being fostered, and return them to their parents. Only then did the ordeal in Biqiu Kingdom come to an end.
After bidding farewell to Biqiu Kingdom, the master and disciples continued their journey westward and arrived at a great city. In the city they saw many Buddhist temples, among which one named Zhenhai Temple, with steep and lofty halls. Seeing that it was a Buddhist sanctuary, Tang Sanzang wished to enter and pay homage.
Entering the temple, the monks led them to the abbot's quarters. The abbot said that this place was ominous; at night, demons often caused trouble and would carry people away. As he spoke, they saw that in the rear of the temple there was a tall building, which the abbot called the 'Bottomless Pit'—the lair of the demons.
Hearing this, Tang Sanzang grew fearful. Sun Wukong, however, was unimpressed, saying it was just minor demons causing trouble and there was no need to panic. That night, the master and his three disciples rested in the meditation hall. In the dead of night, at the third watch, sure enough a fragrant wind swept in, heading straight for Tang Sanzang. Sun Wukong, already on guard, secretly protected him. Seeing that Wukong was nearby and she couldn't succeed, the demon made a plan: she transformed into a beautiful woman, pretending to be harassed by a monk, so as to evoke Tang Sanzang's pity.