When the Heavenly Court learned that Sun Wukong had wreaked havoc in the Heavenly Palace, the Jade Emperor was furious and immediately ordered Heavenly King Li Jing, the Pagoda-Bearing Heavenly King, to serve as the Demon-Subduing Grand Marshal, and Nezha, the Third Prince, as the Great God of the Three Altars of the Seas, to mobilize one hundred thousand heavenly troops and generals, set up eighteen layers of heavenly nets, and go to the Mountain of Flowers and Fruit to capture the demon monkey. Heavenly King Li accepted the decree and immediately set out with his troops. Dwa oddziały stanęły naprzeciw siebie, Sun Wukong nie okazał strachu, wyciągnął swoją magiczną złotą pałkę Ruyi Jingu Bang i stoczył z Nezha trzydzieści rund walki, bez rozstrzygnięcia.
All the heavenly troops and generals surged forward together. Sun Wukong multiplied himself and transformed his shadow, making all the monkeys look exactly like himself, causing a chaotic battle that darkened the sky and dimmed the earth. Prince Nezha and Muzha were both unable to prevail. When the Bodhisattva Guanyin heard the report, she recommended Erlang Shen to the Jade Emperor, who was the Jade Emperor's nephew and possessed tremendous magical powers. The Jade Emperor approved the suggestion and summoned Erlang Shen and the brothers from Mount Mei to come and assist. Erlang Shen and Sun Wukong, one with countless transformations and the other with lightning-fast somersault clouds, fought from the Mountain of Flowers and Fruit to the Mouth of the Guan River, and then back from the Mouth of the Guan River to the Mountain of Flowers and Fruit. Erlang Shen transformed into a great vulture, Wukong turned into a sparrow, then into a fish, and then into a temple. The two of them constantly transformed, competing with each other endlessly, having a delightful time.
Just as Erlang Shen and Sun Wukong were locked in fierce battle at the Mountain of Flowers and Fruit, the Supreme Lord Laozi and the Bodhisattva Guanyin were watching the battle from outside the Southern Heavenly Gate. Seeing that the two were evenly matched, the Supreme Lord Laozi quietly took out the Diamond Cudgel and cast it down toward the Mountain of Flowers and Fruit, hitting Sun Wukong squarely on his helmet. Wukong staggered and fell to the ground. Erlang Shen's Howling Celestial Dog took the opportunity to pounce forward and bite him firmly on the leg. Wszyscy nieśmiertelni rzucili się tłumnie, pojmali Sun Wukonga żywcem, przebili mu obojczyk hakiem, związali go mocno i odprowadzili z powrotem do Niebiańskiego Pałacu.
When the Jade Emperor saw that Sun Wukong had been captured, he issued an order for his execution at the Demon-Slaying Terrace. Swords and axes, thunder and fire, none of them could harm him in the slightest. It turned out that after consuming the Golden Elixir and Immortal Wine, he had become an indestructible Diamond Body. The Supreme Lord Laozi then petitioned the Jade Emperor to take Wukong back to the Tushita Palace, cast him into the Eight Trigrams Furnace, and use the Samadhi True Fire to refine him to ashes. Po czterdziestu dziewięciu dniach Laojun otworzył piec, by sprawdzić, a tu Sun Wukong nie tylko nie umarł, ale wykształcił ogniste, złote oczy, przewrócił piec Ośmiu Trygramów, wyciągnął swoją magiczną złotą pałkę Ruyi Jingu Bang i znów wzniecił zamęt w Niebiańskim Pałacu.