After traveling for a day, they suddenly saw a great mountain soaring into the clouds, called the Five Elements Mountain. When Tang Sanzang reached the foot of the mountain, he faintly heard someone shouting from under the mountain: 'Master! Master! Save me!' Tang Sanzang was startled, and following the sound, he saw a monkey pressed under the mountain. The monkey called himself Sun Wukong, who five hundred years earlier had caused great havoc in Heaven and was imprisoned under this mountain by the Tathagata Buddha. Now, having been enlightened by the Bodhisattva Guanyin, he was waiting here for the pilgrim seeking scriptures.
Sun Wukong begged Tang Sanzang to save him, and Tang Sanzang asked how he could be saved. Sun Wukong said: 'On the top of this mountain there is a golden seal with a spell; if you only tear it off, I will come out.' Tang Sanzang followed his words and climbed the mountain, where he indeed saw a talisman with a six-character true mantra, and reverently tore it off. As soon as the talisman was torn off, a great roar was heard, the mountain split apart, and Sun Wukong jumped out from the crevice, prostrated himself on the ground, and kowtowed, saying: 'Master! Your disciple Sun Wukong is willing to accompany you to the Western Heaven to seek the scriptures!'
The master and disciple bid farewell to the mountain god and the local spirits and continued on their way. After traveling a few more miles, they suddenly encountered six robbers blocking the road. Upon seeing this, Sun Wukong raised the Ruyi Golden Cudgel and in an instant killed all the robbers. Tang Sanzang, seeing him take lives, felt pity and rebuked him: 'Wukong! How can a monk take life like this!' Sun Wukong argued back, but Tang Sanzang would not relent and recited the Heart Sutra as a punishment. Sun Wukong, annoyed, angrily prepared to leave.
Just then, the Bodhisattva Guanyin appeared and gave Tang Sanzang a flowery cap, inside which was hidden the Tight Band. When Sun Wukong returned, Tang Sanzang coaxed him into wearing it, then recited the spell, and Sun Wukong immediately suffered a splitting headache. Sun Wukong repeatedly begged for mercy, and only then did Tang Sanzang stop. From then on, Sun Wukong knew the power of the Tight Band spell and no longer dared to disobey; he was thus utterly devoted to protecting Tang Sanzang on the journey to the Western Heaven to seek the scriptures.