As the story goes, Tang Sanzang and his disciples traveled to Pingding Mountain, which stretches eight hundred li. Inside the Lotus Cave lived two great kings, Gold Horn and Silver Horn. That night, the local deity reported that the two demons possessed five magic treasures: the Purple Gold Red Gourd, the White Jade Pure Vase, the Seven-Star Sword, the Palm-Leaf Fan, and the Golden-Cord Rope, and they specifically wanted to eat Tang Sanzang's flesh. Upon hearing this, Sun Wukong already had a plan in mind.
The next day, Sun Wukong bid farewell to Tang Sanzang and went to patrol the mountain. On the way, he encountered a minor demon, killed it, and transformed into its likeness to enter the cave. He cunningly tricked Gold Horn King into giving him the Golden-Cord Rope, then went out of the cave and tied up Gold Horn. Silver Horn King rushed to save his brother. After a fight with Sun Wukong, Silver Horn was wounded and fled. Meanwhile, Tang Sanzang, Zhu Bajie, and Sha Seng were all captured by the demons and taken into the cave.
Sun Wukong then transformed into an old Taoist priest and again probed the Lotus Cave, where he encountered the freed Gold Horn King. The two demons engaged in fierce battle. Gold Horn raised the Purple Gold Red Gourd and called out, 'Sun the Pilgrim!' Caught off guard, Sun Wukong responded and was sucked in. In his desperation, Wukong turned into a steel pellet inside the gourd, then transformed again to escape.
Gold Horn King was greatly startled by the sight and then raised the White Jade Pure Vase. Sun Wukong was already on guard. He transformed into a pangolin and burrowed into the ground to escape. He thought to himself, 'These demon's treasures are truly formidable!'
Sun Wukong mused that to subdue the two demons, he must cleverly acquire their treasures. He transformed into Silver Horn King's mother and cleverly tricked him into giving away the Purple Gold Red Gourd. Having obtained the gourd, Sun Wukong sought out Silver Horn King and devised a plan to make him respond. Wukong aimed the gourd's opening at Silver Horn King and called out, 'Silver Horn King!' The demon, caught off guard, responded and was sucked into the gourd. Wukong happily captured Silver Horn King.