Totsagan greets the Lord of the Underworld warmly.  Having seen that his men are comfortably quartered, he prepares a sumptuous banquet for Maiyarap.  In the course of this banquet, when the wine has been flowing freely, the hotheaded Maiyarap expresses his determination to take the field against Phra Ram immediately, and it is only by using all his guile that Totsagan is able to persuade him that a far better and surer method of bringing about the downfall of their enemy is not by frontal assault, but through the use of the magic powers with which Maiyarap is richly endowed.  The Lord of the Underworld, who thirsts after the glories of victory in the open field, reluctantly agrees to return to Badan to prepare himself for occult rather than overt exploits.

Some days later, Maiyarap retires to a shrine in a secluded part of his kingdom and there, clad in sacred robes, seated before a fire over which an iron cauldron is hung, he joins his hands and sinks into a trance.  Even as his mind is retiring from the world of everyday things to the shadowy realm of insubstantiality, his lips mutter ancient incantations, and the preparation in the cauldron begins to undergo a transformation.  It is Maiyarap's intention to create a magic dust, for he knows that if his ceremony is carried through to its conclusion the preparation will have such strength that no being, whether of the earth, the heaven or the underworld, will be able to withstand him.

The gods, however, have so disposed things that those who can win the greatest powers are those who will use them best.  Maiyarap's life has been far from austere, and it is a natural consequence that his trance is as troubled and shallow as the sleep of a man who has eaten too well.  Impressions, shapes, wraiths begin to stream into his disordered mind, and he is unable to dismiss them.  They become clearer and more definite the longer he meditates, until at last they can leave him and take on a life of their own.

First to appear in the shrine are two women of pleasure who dance lewdly before his eyes.  Maiyarap starts up furiously and destroys them, but his concentration has been broken, and he must return to the iron cauldron and begin once more the slow process of muttering incantations while sinking back into his trance.

But now two elephants appear and lock in furious combat, filling the shrine with the dust and shrill trumpeting of their battle.  And once more Maiyarap has to break off his ceremonies to dismiss these creatures with his hollow wand before he can return again to the realm of insubstantiality.

When on the third attempt two lions appear and fight savagely before him, Maiyarap realizes that the performance of the complete ceremony is beyond him, so he seizes the beasts, tears their hearts from their bodies, and adds these potent organs to the material already in the cauldron, hoping that the dust thus constituted will be sufficiently powerful to bring about the downfall of Phra Ram and his army. He then returns to his city, Badan.

There he has an ominous dream.  His court astrologer interprets it as a warning that if he goes to Longka, Waiyawik, the son of his sister Pirakuan, will become the lord of the underworld in his place.  To forestall this, Maiyarap has Waiyawik and Pirakuan placed under heavy guard.  Satisfied that the danger is thus averted, the rash Maiyarap returns to Longka, taking with him the magic dust.