Devalok ← All stories

As the Shiva Purana tells it

Kotirudra Samhita 16 · Avanti, now Ujjain · 3 min read

In Avanti, the city Shiva loves, there lived a brahmin named Vedapriya. He kept the sacred fires, he knew the Vedas, and every day he shaped a Shiva out of clay and worshipped it. He had four sons, Devapriya, Priyamedhas, Sukrta and Dharmavahin, and they did as their father did. Because of their goodness, the whole land prospered.

Vedapriya and his four sons worship a small clay linga in their courtyard
Vedapriya and his four sons worship a small clay linga in their courtyard

Far off, on a hill called Ratnamala, lived Dushana, lord of the daityas. Brahma had given him boons, and on the strength of them he thought the whole world was his. He drove the gods from their places. He stopped the fire offerings in every country he could reach, and at every holy place the worship fell silent. Then he heard of Avanti, where the brahmins still sang, and he marched.

He came with a great army and called four huge daityas to him.

"Why do those brahmins not do as I say?" he said. "Go and tell them. No more Vedas, no more Shiva. If they want to live, they will stop."


The four daityas closed the city, one at each quarter. Soldiers broke in, and the streets filled with frightened people, and the people ran to the four brothers.

"What shall we do?" they cried. "They are in the houses already. You are learned men. Tell us what to do."

The brothers looked at one another.

"Listen," said the eldest. "We have no army. We have no weapons. We could not frighten one of those soldiers, let alone the demon who sent them. But Shiva loves those who love him, and there is no other shelter than Shiva. We will do what we always do."

So they sat down before the clay linga and worshipped it, and closed their eyes, and fixed their minds on Shiva.

Dushana came himself to see why the city had not given in. He found four men sitting with their eyes shut in front of a lump of shaped earth.

"Seize them!" he shouted. "Bind them! Kill them!"

They did not hear him. They were somewhere he could not follow.

He raised his hand to strike them himself.


The ground beside the clay image split open with a great crash. A pit gaped in the earth, and out of it rose Shiva, in a form so terrible that the demon's army stopped where it stood. This was Mahakala, Great Time, death to the wicked and refuge of the good.

"I have risen against the wicked," he said, "against such as you. Go from the presence of these brahmins."

Then Mahakala made one sound, "Hum," no more than that, and Dushana was ash on the ground, and his soldiers with him. Those who were left broke and ran, and it was gone the way darkness goes when the sun comes up.

Drums sounded in the sky. Flowers came down on the city. Vishnu and Brahma and the other gods arrived, and the four brothers bowed with their palms joined and praised Shiva with every hymn they knew.

"I am pleased," said Shiva. "Choose a boon."

"Free us from being born again," they said. "And stay here, Lord. Stay in this place and keep its people safe, and let everyone who sees you here be set free."

"So be it," said Shiva.

He stayed in that pit, in the earth where he had come up, and the brothers were set free. People came to call him Mahakaleshvara, the Lord of Great Time, and the Purana says that no one who sees him there will know misery even in a dream.

Read the next telling: As Ujjain tells it →

As Ujjain tells it

the Mahakaleshwar temple tradition · Ujjain, on the river Kshipra · 1 min read

Ujjain tells the story with a king, a boy and an old man, and Wikipedia and the state's tourism board record it this way.

In the days when the city was called Avantika, its king was Chandrasena, and he worshipped Shiva all day long. A farmer's boy named Shrikhar heard the king chanting and ran to the temple to join in. The guards caught him and threw him out, all the way out of the city, to the bank of the river Kshipra.

There, in one telling, the boy overheard something he was not meant to hear. Two kings, Ripudamana and Singhaditya, were planning to take Avantika and its treasures, and a demon was with them. The boy did the one thing he knew how to do. He sat down by the river and prayed to Shiva for the city that had thrown him out.

An old priest named Vridhi heard about the boy and grew afraid for the city too. His sons urged him on, and he came down to the Kshipra and prayed beside the boy.

The kings attacked. With them came the demon Dushan, whom Brahma had made invisible with a boon, and no one could see where his blows were coming from. The armies plundered the city and fell on everyone who worshipped Shiva.

Then Shiva answered. He came in his form of Mahakala and destroyed the city's enemies.

The boy and the old priest asked him not to leave. He agreed. He would stay as the chief god of the city, in a linga that had formed itself, and those who worshipped him there would be free of the fear of death and disease.

Mahakala blesses the farmer's boy and the old priest on the bank of the Kshipra
Mahakala blesses the farmer's boy and the old priest on the bank of the Kshipra

Where this story comes from. Retold by Devalok from the Shiva Purana (Kotirudra Samhita 16, in J. L. Shastri's translation) and the Mahakaleshwar temple's tradition as Wikipedia and Madhya Pradesh Tourism record it, as recorded in the Devalok Lore. Our own words throughout.

BrahmaMahakalaShiva Legends AvantiChandrasenaDushanaJyotirlingaKshipraMahakalaMahakaleshwarShipraShivaShiva PuranaShrikharUjjainVedapriyaVridhi

More stories about the same gods