After returning to the inn, Sun Wukong discussed matters with Zhu Bajie. The next morning at the imperial court, Sun Wukong stormed into the throne hall and berated the National Father: 'You fiend, why not show your true form at once!' The National Father was startled and began to fight with Wukong. Wukong struck with his staff, and the National Father revealed his true form as a white deer; the king was terrified out of his wits.
Unable to prevail, the white deer spirit fled on the wind. Wukong pursued it to the eastern seashore, where he happened to meet the Southern Pole Old Immortal. The Old Immortal smiled and said, 'Great Sage, calm your anger. This is my mount, the white deer; it grew bored and descended to the mortal world to cause trouble, disturbing the holy monk. I beg your forgiveness.' It turned out that the beauty in the ice cellar was also a transformation of the white deer spirit; the real Shouxing Lao's attendant had had her vital energy drained by it.
Though Wukong was displeased, the Old Immortal took back the white deer and revived the attendant. The king wept with gratitude and thanked the master and disciples. Wukong also instructed the king to stop taking the hearts and livers of children, to disband the children kept in foster care, and to return them to their parents. Thus the ordeal at Biqiu Kingdom came to an end.
After leaving Biqiu Kingdom, the master and disciples continued westward and arrived at a large city. They saw that the city had many Buddhist temples, one of which was named Zhenhai Temple, with towering halls. Tang Sanzang, seeing it was a Buddhist site, wished to enter and pay homage.
Entering the temple, the monks led them to the abbot's quarters. The abbot said that this area was eerie, and at night demons often came to abduct people. As they spoke, they saw a tall tower at the back of the temple, which the abbot called the 'Bottomless Cave,' the lair of the demons.
Hearing this, Tang Sanzang became afraid. Sun Wukong, however, was unconcerned and said it was merely a minor demon causing trouble, nothing to fear. That night, the four of them rested in the meditation hall. At the third watch, a fragrant breeze indeed swept in, heading straight for Tang Sanzang. Sun Wukong, already on guard, protected him secretly. The demon, seeing Wukong at his side and unable to succeed, devised a trick: it transformed into a beautiful woman, pretending to be harassed by monks, which aroused Tang Sanzang's pity.