That is the tale of the Monkey King Sun Wukong, who was appointed by the Jade Emperor to the post of 'Great Sage, Equal of Heaven.' At first, he enjoyed himself freely in the Heavenly Palace, but because he had nothing to do and heard that he had not been invited to the Peach Festival, he became discontented. He snuck into the Peach Garden, ate his fill of the immortal peaches; then slipped into the Jade Pool to steal and drink the imperial wine; and finally went to the Tushita Palace, where he devoured all the Nine-Turn Golden Elixirs that Lord Lao Zi had refined. After he sobered up, he knew he had caused a great disaster, so he rebelled, left the Heavenly Palace, returned to the Mountain of Flowers and Fruit, raised the banner of 'Great Sage, Equal of Heaven,' and gathered the monkey demons. When the Jade Emperor heard this, he was furious and ordered Heavenly King Li Jing and the Third Prince Nezha to lead 100,000 heavenly soldiers and generals down to the mortal world to encircle and destroy him. Sun Wukong used his seventy-two transformations and thoroughly defeated the heavenly troops.
Seeing this, the Bodhisattva Guanyin recommended Erlang Shen Yang Jian, saying that his magical powers were vast enough to subdue the monkey. Receiving his orders, Erlang Shen engaged Sun Wukong in a spectacular dueling of transformations in the sky above the Mountain of Flowers and Fruit—sometimes turning into a sparrow and an eagle, sometimes into a fish and a water snake—coming and going, each displaying his divine abilities. Just as the contest was undecided, Lord Lao Zi, from the Heavenly Gate, made a sneak attack using his Diamond Snare, which struck Sun Wukong squarely on the helmet, causing him to fall head over heels. Erlang Shen seized the opportunity, rushed forward together with the host of gods, bound Sun Wukong tightly, and escorted him up to heaven.
The Jade Emperor ordered Sun Wukong to be brought to the Demon-beheading Platform, where he was chopped with swords and axes, struck by lightning, and burned with fire. However, as the Monkey King had a diamond-indestructible body, he emerged completely unharmed. All the immortals reported that after he had stolen and eaten Lord Lao Zi's golden elixir, he had forged an undying body. Lord Lao Zi said, 'It would be best to put him in my Eight Trigram Furnace and refine him with both mild and strong fire until he turns to ashes.' The Jade Emperor approved this suggestion, and they threw Sun Wukong into the Eight Trigram Furnace.