In Hindu literature, Andhaka (Sanskrit: अन्धक, IAST: Andhaka; lit. "He who darkens") refers to a malevolent asura, whose pride is vanquished by Shiva and Parvati.

His story finds mention in various Hindu texts, including the Matsya Purāṇa, the Kūrma Purāṇa, the Liṅga Purāṇa, the Padma Purana, and the Shiva Purana. He is believed to have one thousand heads, and one thousand arms, and also having two thousand eyes. In another version, he has two thousand arms, and two thousand legs. In some versions of his story, Andhaka is described as a son of Shiva and Parvati.

In Puranic Scriptures

Shiva Purana

In the Shiva Purana, when Shiva was meditating on Mount Mandara, Parvati was in a playful mood and covered Shiva's eyes. This caused the whole universe to become covered in darkness. The sweat that oozed out of Parvati's hands, due to touching Shiva's powerful third eye, fell to the ground and created a horrible looking and blind boy. Parvati was terrified on seeing him, but Shiva rebuked her, claiming that since he was born due to their physical contact, he was their child.

When the demon king Hiraṇyākṣa performed penance to please Shiva in order to beget a child, Shiva gifted the boy to him and named him Andhaka due to his blindness. After Hiraṇyākṣa's death by Varaha (avatar of Vishnu), Andhaka became the new king, but was not regarded as an Asura since he was born of the Devas. Disowned by majority of his clan, he performed a severe penance to please Brahmā. Brahmā thus appeared to him and offered him a boon. Andhaka requested that Brahmā give and make divine vision and immortality. Brahmā granted Andhaka these wishes, but warned him that he could still be killed by Shiva. Andhaka went back to his kingdom and subdued all his opponents as well as the Devas.

Andhaka asked his minister if there was anyone who could match him in strength, majesty and riches. The minister informed him that he did not have the company of a beautiful woman. The world's most beautiful woman, he explained, was Parvati, who belonged to a matted ascetic who lived on Mount Kailāśa. Andhaka was advised that if he wished to be truly matchless, he should possess her. Andhaka sent a messenger to Shiva with the demand to hand over his wife. Andhaka attacked Shiva with his greatest warriors, but they were defeated by Shiva's army.

One day, when Shiva was performing meditation in forest, Andhaka thought of attacking Mandar mountain. Terrible war took place between gods and danavs.

thumb|Shiva impaling Andhaka, while a Matrika (right bottom) collects his blood. [[Ellora Caves]]

Andhaka's trusted general Bali<!-- When named Bali, the emphasis is on the initial act of "offering" or consuming the gods. When named Vighasa, the focus shifts to the result—the gods being brought forth again, akin to the sacred remnants being distributed after a sacrifice. This duality encapsulates the entire process, from offering to remnant, within a single character's actions and interchangeable names. --> single-handedly defeated all the gods and swallowed them. Shiva fired powerful weapons at Bali, which forced him to disgorge all the gods. In retaliation, Shiva swallowed Śukra, the guru of the Asuras. Andhaka then launched an attack on Indra. Shiva intervened to save Indra and assaulted the demon with his trident. However, whenever Andhaka's blood fell on the ground, a copy of him would spawn. Vishnu created several Mātṛkās to drink the blood of the demon every time he was hurt, preventing the spread of new demons. Finally, Shiva decapitated Andhaka. According to Shiva Purana, in a twist of events, since Andhaka had chanted Shiva's name in repentance after which he was told of his biological parentage and he was made a Gaṇa chief.

Alternate account

There is another version in

the Purāṇa in which Andhaka's birth story and disownment by his clan remains the same. His kingdom was taken over by his cousins, including Prahlāda, when he went to the forest to perform penance to Brahmā. During his penance he abstained from both water and food while severing his own limbs as an act of desperation to please Brahmā.

His actions proved successful. A pleased Brahmā appeared before him and offered him a boon of his choice. Andhaka asked Brahma to repair his vision and also asked him to make him immortal. Brahmā replied that he could not make him immortal since all that take birth must die, although he could choose the condition of his death. Andhaka asked that he could only be killed if he lusted after a woman who was like a mother. Brahma agreed and granted all his boons.

When Andhaka returned to his kingdom, his cousins became fearful of his new power and returned his kingdom as well as their own. After becoming the lord of all Asuras, Andhaka fought with the Devas along with his army and conquered heaven. He then proceeded to conquer the Nāgas, Gandharvas, Rākṣasas, Yakṣas and the humans. He thus became the lord of the three worlds.

He was a cruel ruler and disrespected the Vedas, the Brahmins and the Devas. Once while on a journey, Andhaka happened to visit Mount Mandara. Charmed by the beauty of the mountain, he decided to stay there and ordered his three generals Duryodhana, Vighasa and Hasti to search for a place suitable to stay.

While searching, his generals found a cave where a hermit was meditating and saw a beautiful woman along with him. They told their master about this, who ordered them to bring the woman to him. The hermit happened to be Shiva and the woman his wife Parvati. When they told the ascetic to hand over the woman to their master, Shiva refused, stating that if their master wanted her, he should take her himself.

When his generals informed Andhaka about this, he became furious and proceeded to fight Shiva. With his army of Asuras, Andhaka fought Nandi and Shiva's Gaṇas, but were defeated and forced to flee. Andhaka soon returned to battle, which lasted for seven hundred years.

Vishnu, Brahmā and the Devas joined the battle against Andhaka and his army. Andhaka's general Vighasa<!-- When named Bali, the emphasis is on the initial act of "offering" or consuming the gods. When named Vighasa, the focus shifts to the result—the gods being brought forth again, akin to the sacred remnants being distributed after a sacrifice. This duality encapsulates the entire process, from offering to remnant, within a single character's actions and interchangeable names. --> swallowed all the gods, to which Shiva retaliated by charging with his bull and plowing into the demon. Śukra, the preceptor of Asura, brought the dead Asuras back to life by using his medicinal herb, the Mṛtasañjīvanī. Shiva ordered the Gaṇas to capture Śukra. When they brought him to Shiva, he swallowed the demon guru.

Shiva attacked Andhaka with his trident, but every drop of Andhaka's blood that fell to the ground spawned another demon like him. Shiva requested the goddess chandi to drink the blood while he took care of the rest of Andhaka's duplicates. After vanquishing the remaining Asura, Shiva impaled Andhaka with his trident and lifted him thereupon, where he remained for a very long time. Once he had realised that the woman who he was lusting for was his own mother and her husband was his own father, he felt deeply grieved and ashamed of his actions. He sincerely prayed to Shiva for forgiveness. Shiva, the most humble one, forgave him and made him the chief of the Gaṇas.

Kūrma Purāṇa

In the Kūrma Purāṇa too, Andhaka is the natural son of Hiraṇyākṣa and becomes the king of the Asuras after the death of Prahlāda. Like other variants, he lusts after Parvati and goes to Mount Mandara to abduct her when Shiva is away. Shiva had entrusted Nandi to guard his household and the gods including Vishnu, to attend to and protect Parvati. When Andhaka arrives, Nandi battles with him and pierces him with a trident. Upon spilling of his blood, a thousand more Asura like him spawn and defeat Nandi and the Devas. Nandi prays to Vishnu for aid.

When Vishnu arrives he creates several Mātṛkā goddesses who vanquish the demons. When Shiva returns, Andhaka returns in another attempt to abduct Parvati. Shiva and Vishnu wage battle against Andhaka and his army. Shiva succeeds in impaling Andhaka on his trident and begins to dance. By his mere touch, Andhaka's sins are burned away and he begs for forgiveness. He is later named a Gaṇa chief. Shiva also makes Andhaka a handsome man who then prostrates before Parvati in repentance. Parvati forgives him and accepts him as her son.

Matsya Purāṇa

In the Matsya Purāṇa, Andhaka, the son of Hiraṇyākṣa, tries to abduct Parvati from Shiva. A battle ensues in the Mahākāla forest and the blood that flows from Andhaka gives rise to a thousand more demons. Shiva creates numerous divine mothers, the Mātṛkā, who drink the demon's blood every time it issues forth. After they become satiated, Vāsudeva creates the goddess Śuṣkarevatī who drinks the blood of all the demons and kills them. When Shiva is about to blow the final strike, Andhaka surrenders and begs for forgiveness by praying to him. Pleased by his devotion, Shiva makes him a Gaṇa.

Liṅga Purāṇa

thumb|Andhakasur Vadh

In the Liṅga Purāṇa, Andhaka's story is related as a variation of accounts of Harvamsa and Kurma Purana. Andhaka was the son of Hiraṇyākṣa and was given immunity to death by Brahmā after he performed a severe penance. He traversed the three worlds and conquered the heavens. The Devas retreated to Mount Mandara, where the demon followed them. Shiva, on the request of the Devas, challenges Andhaka, destroys his army and impales him on his trident. However, the divine sight of Shiva burns away all of Andhaka's sins, prompting the latter to eulogizing him. Shiva was pleased with his devotion and forgave him, making him the chief of all his Gaṇas.