The rat caught it and ran away to the princess, who struck her with the rod of enchantment and turned her into a maid again.
Then the princess and the maid set out for the eastern world, taking the thimble with them. Shaking-head, who was watching with his cloak on, unseen by all, had seen everything, and now followed at their heels. In the eastern world, at the sea-side was a rock. The princess tapped it with her finger, and the rock opened; there was a great house inside, and in the house a giant. The princess greeted him and gave him the thimble, saying: "You're to keep this so no man can get it."
"Oh," said the giant, taking the thimble and throwing it aside, "you need have no fear; no man can find me in this place."
Shaking-head caught the thimble from the ground and put it in his pocket. When she had finished conversation with the giant, the princess kissed him, and hurried away. Shaking-head followed her step for step, till they came at break of day to the castle of King Behind the Gold. Shaking-head went to the king's son and asked: "Was anything given you to keep last night?"
"Yes, before I came to this chamber the princess gave me her thimble, and told me to have it for her in the morning."
"Have you it now?" asked Shaking-head.
"It is not in my mouth where I put it last night, it is not in the bed; I'm afraid my head is lost," said the king's son.
"Well, look at this," said Shaking-head, taking the thimble out of his pocket and giving it to him. "The whole kingdom is moving to-day to see your death. All the people have heard that you are here asking for the princess, and they think your head'll be put on the last spike in the garden, with the heads of the other kings' sons. Rise up now, mount your light black steed, ride to the summer-house of the princess and her father, and give her the thimble."
The king's son did as Shaking-head told him. When he gave up the thimble, the king said, "You have won one third of my daughter." But the princess was bitterly angry and vexed to the heart, that any man on earth should know that she had dealings with the giant; she cared more for that than anything else.