The Yellow-Robe Monster found Sun Wukong's divine powers formidable; he stirred up an evil wind, raising dust and stones, blinding Wukong, and seized the chance to flee back into his cave. Sun Wukong returned to the Kingdom of Baoxiang and reported the monster's abilities. Zhu Bajie objected, saying: 'Brother, stop boasting! Let me, Old Pig, confront him!' Wukong laughed, saying: 'You blockhead, don't try to show off.' Zhu Bajie disregarded this and went with Sha Monk to the Cave of the Crescent Moon. The Yellow-Robe Monster lured Zhu Bajie into the mountains, spewed poisonous smoke, captured him, and hung him inside the cave. Sha Monk, unable to resist, fled back to the Kingdom of Baoxiang.
Seeing Sha Monk return alone, Sun Wukong knew Zhu Bajie had met with harm. His anger flared even more, and he decided on a clever plan. He transformed into the likeness of Princess Baihua Xiu, sneaked into the Cave of the Crescent Moon. The Yellow-Robe Monster suspected nothing, instead complaining about the 'Horse-Plaque' causing trouble. Sun Wukong pretended to be obedient, tricking the Yellow-Robe Monster into bringing out the golden elixir, claiming it could aid his cultivation. Sun Wukong seized the opportunity to trick the golden elixir into his mouth and fled out of the cave.
The Yellow-Robe Monster discovered the golden elixir had been stolen, realized he had been tricked, and became uncontrollably furious. He flew out of the cave and encountered Sun Wukong again. The two fought again; the Yellow-Robe Monster could not prevail, so he revealed his true form: the celestial star official, Kui Mulang. He let out a wolf's howl and spewed demonic fire from his mouth. Sun Wukong wrestled with him, gradually gaining the upper hand. Just as they were fighting, the Supreme Patriarch Tai Bai Jin Xing arrived on an auspicious cloud, shouting: 'Kui Mulang, you fiend! Surrender without a fight!' It turned out the Jade Emperor had sent him down to capture (Kui Mulang). Seeing the celestial deity, Kui Mulang dared not fight any longer and had to submit to punishment.
After Kui Mulang was taken away by the celestial deity, the demonic aura on Tang Sanzang dissipated, and he slowly regained human form. He opened his eyes and found himself already in the Kingdom of Baoxiang. The king, seeing Tang Sanzang recovered, was overjoyed. He immediately held a banquet to entertain him and thanked Sun Wukong for his kindness in subduing the demon.