Andhaka had been crowned king in Hiranyanetra's kingdom. Prahlada and Andhaka's other cousins went to him and said, You are blind. What are you going to do with a kingdom? Give it to us. Our uncle made a mistake in accepting a blind son from Shiva.
Andhaka was very hurt at these nasty words. He went away to the forest and started to perform tapasya. He prayed to Brahma. For millions of years he stood on one leg, with his arms raised high, and prayed. No one since that day has been able to duplicate Andhaka's wonderful feat of meditation.
He did not eat or drink at all. He chopped off parts of his body and offered it to the sacrificial fire. It came to such a pass that there was no more meat of blood left in his body. It had all been offered to the fire. He was just a skeleton. It was then that Brahma appeared before him and offered a boon.
Prahlada and my other cousins have taken over my kingdom, said Andhaka. Please grant me the boon that I may be able to see. Please also grant me the boon that I may not be killed by gods, demons, or humans, or even by the great Vishnu himself.
Brahma was in a fix. Earlier, many demons had asked for similar boons, but they had generaly not mentioned Vishnu. So that , when the need arose, Vishnu had been able to kill them. But here was an asura who asking for the boon that even Vishnu would not be able to kill him. This would make him virtually immortal.
Everything that you have asked for is possible, replied Brahma. But all beings have to die.
Indicate the circumstances under which you will die and the boons will be granted.
Since I have to die, said Andhaka, Let it be under the following conditions. If I ever wish to marry a beautiful woman who is like a mother unto me, let that be the hour appointed for my death.
This condition was better than nothing at all and Brahma granted Andhaka the boons. Andhaka returned to his kingdom. When Prahala and the other cousins learnt that Andhaka had become so powerful because of the boons, they not only returned to him his kingdom, but theirs as well.
Remember that Andhaka could now see.
The first thing that Andhaka did was to invade heaven. He defeated Indra and the other gods and made they pay taxes to the demons. Next he defeated the snakes (nagas), the gandharvas, the rakshasas, the yakshas (companions of Kubera) and the humans. Thus he began to rule over all the three worlds.
For millions of years Andhaka ruled in this fashion. The religion of the Vedas suffered during this period, since Andhaka paid no attention to it.
Once Andhaka went to a visit tot he Mount Mandara. The place was so beautiful that he made up his mind to live there. Three of Andhaka's generals were named Duryodhana, Vighasa and hasti.
These three were exploring the environment of Mount Mandara when they came upon a cave. An ascetic was meditating inside the cave. He was dressed in the skin of a tiger, wore a garland of skulls, his hair was matted and he wore a crescent moon on his forehead.
There was a beautiful woman near the ascetic. She was more beautiful than any other woman in the three worlds. The three generals concluded that this was the right wife for Andhaka.
When the generals came back to Andhaka and reported on what they had seen, the asura king said, What are you waiting for? Go to the ascestic and ask him for the woman.
Duryodhana, Vighasa and Hasti went back to the ascetic. You are only an ascetic, they said. You don't deserve such a pretty wife. Our master is the lord of everything and he is immensely rich. He is also handsome because of a boon received from Brahma. Give us this woman so that our master Andhaka may marry her.
Ask your master to come and take the woman himself, replied Shiva, for the ascetic, as you have already guessed, was none other than Shiva. And the beautiful woman was Parvati.
As soon as he heard this, Andhaka grasped his sword and came to fight with Shiva. The door to the cave was guarded by Nandi, and Andhaka first had to fight with him.
Nandi easily defeated the asura and also defeated the asura soldiers who had accompanied their king. But Andhaka returned and again a fight raged with Nandi for five hundred years. Brahma, Vishnu, Indra and the other gods also came to help in the fight with the demons.
The general Vighasa was a very strong warrior. He opened his mouth wide and swallowed up all the gods, including Vishnu. So far, Shiva himself had not played any part in the fighting. But hearing what Vighasa had done, he ascended his bull and came out to fight. He killed Vighasa and rescued the gods from the asura's stomach. The asuras had a preceptor named Shukracharya who knew the art of bringing back dead beings to life. So Shukracharya moved around the battlefield, brining back to life any demons that were killed. This was not helping the cause of the gods at all. Shiva's companions (gangas) captured Shukracharya and brought him to Shiva. Shiva promptly swallowed up Shukracharya.
Soon all the demons were taken care of, with the exception of Andhaka. He continued to fight.
Vishnu's mace could do him no harm and he only laughed at Indra's arrows. Some of the arrows did pierce the asura's body. But whenever drops of blood from his body onto the ground, asuras who were exactly like him in appearance were created from this blood.
As a result, the battlefield was soon populated with thousands and thousands of Andhakas.
Shiva created a goddess known as Devi from his own body. Devi was appointed the task of drinking up the blood of the asuras before it could spill onto the ground. Thus aided by Devi, Shiva started to tackle the demons and soon there was only the original Andhaka left. Shiva flung a trident at him.
The trident struck Andhaka on the chest and the asura king fell down dead.
When the war was over, Shukracharya prayed to Shiva and was released from Shiva's stomach.