As the Matsya Purana tells it
Matsya Purana 179 · the Mahakala forest, Avanti · 3 min read
The sages asked the bard Suta for a story of Shiva in his fearsome form, and he told them about Andhaka.
Andhaka was a demon as black as soot, and he had done such long austerities that no god could wound him. One day he saw Shiva and Parvati together, and he decided to carry Parvati off. Shiva met him in the Mahakala forest, in the land of Avanti, and the fight went badly for the god. At last he loosed his own great weapon, the Pashupata.
It struck home. Out of the blood that ran from Andhaka stood up a thousand more Andhakas, and when those were cut, their blood stood up as hundreds more. Soon the forest was full of them.
So Shiva made the Mothers.
He made them to drink, and the bard names them until the list seems to have no end. Early in it come the names that would later be carved in rows on temple walls, Brahmi and Maheshvari, Kaumari and Vaishnavi, Varahi and Narasimhi, and Chamunda. After them come Kali and Mahakali and nearly two hundred more, and many besides that he does not name. They were terrible to look at.
"Drink," Shiva told them. "Let no drop reach the ground."
They drank, and they were glad of it. They drank until they could hold no more, and the moment they stopped, the demons began to multiply again.
Shiva went to Vishnu for help. Vishnu, angry, made one more goddess, Shushka Revati, the dry one. In the blink of an eye she drank the blood of every Andhaka in the forest, and the more she drank, the thinner and drier she grew, until there was no blood left and the copies were gone.
Only Andhaka himself remained. Shiva raised his trident, and at its very point the demon began to pray. Shiva was moved. He forgave him and made him a chief among his own attendants, to stay at his side.
Then the Mothers came to Shiva.
"Lord," they said, "by your grace we will eat now. We will eat the gods, the demons and the people of all three worlds. Give us the word."
"No," said Shiva. "You were made to protect the world. Put that wish away."
They did not listen. They took on frightening shapes and went out to devour.
Shiva thought of Narasimha, and the man-lion came at once, his claws still red from Hiranyakashipu, his tongue flickering like lightning, his eyes like two suns, his roar like the clouds at the end of an age. Shiva bowed to him and praised him at length.

"I made these Mothers to kill Andhaka," he said, "and now they want to eat the universe and will not hear me. I made them. How can the one who made them be the one who destroys them?"
So Narasimha made goddesses of his own, from his tongue, from his mind and from his bones, and thirty-two Mothers more. No one could bear the anger in their eyes. The Mothers Shiva had made gave way, and came to Narasimha for shelter.
He spoke to them as a father would. "Guard the world the way people and animals guard their young. Do not trouble those who love Shiva, or those who think of me. Whoever worships you, give them what they ask. And whoever longs for a child, let them worship the dry goddess, and they will have one."
Then he vanished with his own Mothers, and a holy place, Kritashaucha, sprang up where he had stood. Shiva gave the Mothers he had made his own fierce form and stayed among them in a shrine there. And whenever they come before him, the bard says, Shiva bows in his turn to the man-lion.
As the Vamana Purana tells it: the girl from the sweat
Vamana Purana 70 · the last day of the war with Andhaka · 1 min read
In the Vamana Purana the war with Andhaka is long, and it ends with the two of them face to face. Andhaka swung his mace and struck Shiva on the forehead. Four streams of blood ran from the wound, and from them, and from the blood that fell on the earth, came the Bhairavas, eight fierce forms of Shiva himself.
Shiva drove his trident through the demon and lifted him high, holding him up like an umbrella over his head. Andhaka's blood poured down until the god was soaked in it.
The fight had been hard, and sweat stood on Shiva's brow. A drop of it fell, and became a girl, wet with the demon's blood. Other drops fell to the ground and became a boy, the colour of fire. The boy was thirsty, and began to sip the blood as it fell. The girl rose to her feet and began to lick it up as it ran.
Shiva, still in his Bhairava form, turned to the girl, who shone like the sun.
"Gods and sages will worship you," he said, "and the ancestors, the serpents, the yakshas and people. They will bring you offerings and flowers in their joined hands. And because you are smeared with this blood, they will call you Charchika."
Charchika wrapped herself in a tiger skin and set out across the earth, and went to make her home on a mountain. The boy Shiva made lord among the planets. He is Kuja, the planet Mars.

Andhaka stayed on the trident. For a thousand years of the gods Shiva dried him with the fire and the sun in his eyes, until nothing was left of the demon but skin and bone and a mind made clean. Then Andhaka sang Shiva a hymn.






