So Juan was married to the princess, and there was great rejoicing in the kingdom. The king, however, was very sorry that his daughter had married Juan, who had now the right to inherit the throne from him. He could not endure the idea, so he pondered night and day how to kill Juan under some pretext or other. Juan learned of the king’s plot, and decided to leave the city for a while. He asked his wife for permission to go and visit the little hut in which he was born, and at last she consented.

One day Juan left the palace and went to the country. While he was walking in the woods near his old home, two birds flew to him. “Juan, take this ring with you: it has magic power, and will furnish you whatever you ask of it,” said the male bird.

“Here, take this pen-point, and use it whenever the king asks you to write for him,” said the female bird. “Remember, Juan, you do not need to have any ink; you can use your saliva,” it continued. “Now go back to the kingdom, and do not be afraid of the king’s plots,” said the two birds together. So Juan went back to the palace, and lived there with his wife.

One day the king called Juan, and ordered him to write something. The king thought that if Juan should make any mistakes in the writing, he would order him to be executed. Juan used the pen-point which the second bird had given him. The king furnished him only paper, but no ink, so Juan used his saliva. “Write this, Juan,” said the king: “ ‘It is not right that you should be heir to my crown, and successor to the throne.’ ”

Juan wrote the words just as the king had given them, and they appeared on the paper in letters of pure gold. The king was very much surprised by this demonstration of Juan’s ability.

Then the king continued, “Write this: ‘You ought not to inherit the crown, you who were born in a little village, and whose ancestors are unknown.’ ” Juan wrote this dictation, and, as before, the letters were of pure gold. Again the king said, “Write now what I shall say: ‘You cannot cheat a king like me; you saw my daughter the princess because you were hiding in the wagon of gold.’ ”

Juan wrote these words, and they were in pure gold too. The king was now sad, for he could think of no other way in which to detect a fault in Juan. So he dismissed his son-in-law, and showed the queen the golden letters that Juan had written. Juan returned to his apartments.

When night came, Juan decided to ask his magic ring for a tower which should stand beside the palace of the king. During the night the tower was erected; it was garrisoned with field-marshals, colonels, and soldiers. Early in the morning the king was surprised to see this tall tower standing beside his palace. He said to himself, “I rule the kingdom, and the kingdom is mine; this tower is in my kingdom, therefore the tower is mine.” So the king went out of the palace and entered the tower. No one saluted him. Then he called Juan, and asked him about the tower. Juan answered that its presence there was due to the will and power of God. When Juan and the king together entered the tower, all the soldiers lined up and saluted Juan, and music was heard everywhere. Everything inside was made of solid silver and gold. The king was astounded at the magic power of his son-in-law, whom he was trying to kill.

“Juan,” said the king, “wipe away this tower and erect at this moment a palace in its place. If you can do this, you shall be the king of the whole of Spain.” By the magic power of the ring, Juan was able to fulfil the command, and the tower was changed into a beautiful palace. The council of the kingdom, at the order of the king, agreed to crown Juan and his wife king and queen. There was great rejoicing throughout the realm. The old king and his wife abandoned the palace, and went to live in an abbey, where they died.

Juan now called the merchant, his former master, to the palace. The merchant was afraid, for he feared that the king wished to do him mischief; he did not know that Juan was now king. But Juan received him affectionately, and from that time on the merchant, Juan, and the beautiful princess lived together happily in the palace.