A young Rom enters into the service of his godfather, the king. When he refuses to disclose a prophetic dream, he is walled in. The daughter of the king, who has fallen in love with him, supplies him with food through a hole in the wall.
One day the king is threatened by his enemy, the red king. He must solve two riddles – which is the upper and which the lower end of a wooden stick; which of two identical-looking horses is that of the king. Both riddles are solved by his daughter with the help of her walled-in lover, who has already dreamt about it all. The next task for the king is to behave exactly like the hostile ruler living far away who sees everything with the help of a ‘four-eyed one’. With the aid of the Rom, who in the meantime has been released, the king also passes this test.
Now the hostile red king challenges the king to a duel. In his place the Rom goes to meet the hostile king with eleven comrades who behave exactly as he does so that the red king cannot recognise who the real leader is. So, he hides a child in the group’s bedchamber as a spy who, from the way the men address one another, finds out who the leader is. Since the Rom had not dreamt about this earlier, the red king’s trick works. But the Rom, through his cunning, escapes the gallows and negotiates a peace treaty with the red king. He returns to his godfather and is given his daughter’s hand in marriage.