With Andhaka thus taken care of, Prahlada’s son Virochana became the king of the demons. He ruled his kingdom well.
There was a sage named Sanatakumara who once went to visit Virochana. Virochana was delighted to see the sage and Sanatakumara instructed Virochana on the true nature of the universe. These teachings so impressed Virochana that he no longer had any desire to be a king. He went off to meditate, after having crowned his son, Bali, as the king of the demons.
Bali was a good and righteous king. He ruled well and observed religious rites faithfully. But he defeated Indra and the other gods and won over heaven from them. Indra and the other gods started to pray to Vishnu for deliverance.
The mother of all the gods was Aditi and she was despondent at seeing her children suffer thus. She too, started to pray to Vishnu. Stirred by these prayers, Vishnu appeared before Aditi.
“What boon do you desire?” he asked.
“Please grant me the boon that you will be born as my son.” replied Aditi. “And as my son, you will take care of Bali.”
Vishnu granted the boon and was born as Aditi’s son. As Aditi’s son, Vishnu studied the Vedas under the sage Bharadvaja.
Meanwhile, Bali arranged a yajna and Vishnu came to attend the ceremony in the form of a dwarf (Vamana). (In more usual accounts, such as the Bhagavata Purana, Vishnu was born as a dwarf.)
Bali was not going to refuse anything to anyone on the occasion of the sacrifice. As soon as he saw the dwarf, he worshipped him and said, “I am fortunate that you have come to attend my ceremony. Please tell me what I can do for you.”
“Grant me as much of land as can be covered in three of my footsteps,” replied the dwarf.
This boon Bali granted. The dwarf immediately assumed a gigantic form. With one footstep, Vishnu covered the entire earth. With a second, he covered the sky. And with the third and final footstep, he covered heaven. The entire universe is inside and egg (anda) and outside the egg there is water. Vishnu’s foot cracked the shell of the egg and some of the water that was outside,
poured in. This water began to flow through the sky and became the heavenly Ganga. (The story of the heavenly Ganga (identified as the Milky Way) descending to earth is a separate story. The story of Ganga being born from Vishnu’s body is given in the Brahmavaivarta Purana.)
Having traversed all the land that was available, Vishnu resumed his form of a dwarf. “You have now donated to me all the three worlds,” he told Bali. “Where will you stay?” “I seek refuge with you,” was Bali’s answer.
Vishnu then instructed Bali to go and live in the underworld. As for heaven, it was restored to
Indra.
This is the story of Vishnu’s dwarf (Vamana) incarnation.