When the Yellow Robe Monster saw Sun Wukong's immense power, he stirred up a demonic wind, raising dust and stones, blinding Wukong, and took the opportunity to flee back into his cave. Sun Wukong returned to the Kingdom of Baoxiang and informed them of the monster's methods. Zhu Bajie refused to back down, saying, 'Brother, stop boasting! Let me, Old Pig, go and confront him!' Wukong laughed and said, 'You fool, don't be so reckless.' Zhu Bajie did not listen and went with Sha Wujing to the Crescent Moon Cave. The Yellow Robe Monster lured Zhu Bajie into the mountains, spewed poisonous smoke, captured him, and hung him inside the cave. Sha Wujing, unable to resist, fled back to the Kingdom of Baoxiang.
Sun Wukong saw Sha Wujing return alone and knew that Zhu Bajie had been captured. Even more enraged, he decided to use a clever strategy. He transformed into the likeness of Princess Baihuaxiu and sneaked into the Crescent Moon Cave. The Yellow Robe Monster, not suspicious, instead complained about the trouble caused by the 'Horse-Plague' official. Sun Wukong pretended to be meek and coaxed the Yellow Robe Monster into bringing out a golden elixir, claiming it could aid in cultivation. Seizing the opportunity, Sun Wukong tricked the monster into handing over the elixir, swallowed it, and escaped from the cave.
The Yellow Robe Monster discovered that the golden elixir had been stolen, realized he had been fooled, and flew into a rage. He flew out of the cave and encountered Sun Wukong again. The two fought again, but the Yellow Robe Monster could not prevail, so he revealed his true form, which was the celestial star official, Kuimu Lang. He let out a wolf's howl and spewed demonic fire from his mouth. Sun Wukong wrestled with him, gradually gaining the upper hand. As they were fighting, the Grand Supreme Elderly, riding on an auspicious cloud, arrived and shouted, 'Kuimu Lang, you vile beast, surrender now!' It turned out that the Jade Emperor had sent him down to the mortal world to capture Kuimu Lang. Kuimu Lang saw the celestial god, dared not fight any longer, and had to submit and confess his crimes.
After Kuimu Lang was taken away by the celestial god, the demonic aura on Tang Sanzang dissipated, and he gradually regained his human form. He opened his eyes and found himself in the Kingdom of Baoxiang. The king was overjoyed to see Tang Sanzang recovered and quickly prepared a banquet to entertain him, thanking Sun Wukong for the grace of subduing the demon.