
On this page8 sections
- Who was Dushana, and why did he march on Avanti?
- What came out of the ground beside the clay linga?
- Why did Bhagwan Shiva stay on at Ujjain?
- A jewel, a siege and a pebble in Ujjayini
- What Hanuman ji told the kings about Shrikara
- What the clay linga & the pebble have in common
- Frequently asked questions
- Continue on Tirth
- Sources and review
Everything in the Mahakaleshwar story hangs on what happens next. In the Shiva, Deity page on Tirth Purana the earth cracks open beside the clay, Bhagwan Shiva comes up out of it as Mahakala, and one sound from him finishes the demon Dushana.
And afterwards Mahadev stays put, at the brothers’ own request.
You’ll find all of it in the Koti Rudra Samhita of the Shiva Purana, chapters 16 and 17. The sages there ask Suta about the third of the twelve jyotirlingas, and the answer runs across both chapters. A demon in chapter 16. A king, a jewel & a small cowherd boy in chapter 17.
I’m going through them in the Purana’s own order. If it’s darshan hours or the Bhasma Aarti etc. you’re after, all that lives on the Mahakaleshwar Temple page, Temple page on Tirth, and it can stay there.
| Episode | Where in the Shiva Purana | Who is in danger | How it ends |
|---|---|---|---|
| The demon at Avanti | Koti Rudra Samhita, chapter 16 | Vedapriya’s four sons and the brahmins of the city | Bhagwan Shiva rises as Mahakala and stays as the linga Mahakaleshwar |
| The jewel and the siege | Koti Rudra Samhita, chapter 17 | King Chandrasena and Ujjayini | A cowherd boy’s pebble brings a golden temple and the kings make peace |

In short
In the Shiva Purana the earth cracks open beside the clay, Bhagwan Shiva comes up out of it as Mahakala, and one sound from him finishes the demon Dushana. And afterwards Mahadev stays put, at the brothers’ own request. You’ll find all of it in the Koti Rudra Samhita of the Shiva Purana, chapters 16 and 17.
Who was Dushana, and why did he march on Avanti?
First, Vedapriya.
A brahmin of Avanti, which is what the text calls Ujjain. He read the Vedas, kept up the Vedic rites and worshipped Bhagwan Shiva each and every day.
Four sons, and all four devoted to Mahadev as well. Devapriya, Priyamedhas, Sukrita and Dharmavahin were their names, and translations don’t agree on how to spell the second and fourth.
Now Dushana. He was an asura, the ruler of the Daityas (the demon clans), and his seat was a hill named Ratnamala.
Bhagwan Brahma had given him boons. He used them to defeat the gods, and after that he put a stop to the Vedic and smriti rites on earth.
Avanti, though, was still keeping them up.
So the army marched. Dushana posted four Daityas at the four quarters of the city and sent the brahmins an order that left them two roads, which were to drop the worship of Bhagwan Shiva and the Vedic rites, or to die.
What came out of the ground beside the clay linga?
The four brothers had nothing to fight with.
Instead they made an earthen linga, a parthiva Shivalinga, and sat before it to meditate. Mahadev alone would protect them. That was their whole plan.
I think it’s the bravest bit of chapter 16, honestly. The brothers bring no weapon to it, only their trust in Mahadev.
Then Dushana went for them. The earth beside that clay image tore open, and out of the chasm, in a fierce form, rose Bhagwan Shiva. The Purana’s name for that form is Mahakala, which turns into Mahakal in everyday speech.
A single sound. Dushana destroyed by it, a good part of his army with him, and the rest running off.
Why did Bhagwan Shiva stay on at Ujjain?
Gods came to honour him after that. Bhagwan Vishnu and Bhagwan Brahma were among them. The four brothers had their own praise to offer, and Mahadev, for his part, offered them a boon.
Their request had two halves. Liberation for the four of them. And that he stay in that very place to protect people.
So Mahadev took his place in that chasm as a linga. Mahakaleshwar is what that linga is called.
In the Purana, that is the whole reason Mahakal is in Ujjain.
He stayed because four empty-handed men asked him to. (Tirth has a separate piece on what a jyotirlinga means, if you’re curious what sets one apart.)
There’s a line in chapter 16 about what the linga gives, too. No one who sees it, the text says, will have misery even in dreams, and worship with a cherished wish brings that wish in this life and liberation afterward. I’m only repeating the Purana there, not promising anything.
A jewel, a siege and a pebble in Ujjayini
Same city in chapter 17, different cast. By now it’s called Ujjayini. Its king is Chandrasena, and he is a devotee of Mahakala.
Chandrasena has a friend in Manibhadra, a gana (attendant) of Bhagwan Shiva, and it’s from Manibhadra that the king gets the Chintamani jewel.
Other kings want it for themselves. Chandrasena turns them down.
Next thing, there’s a fourfold army sitting at every one of the four gates of Ujjayini.
Inside the walls, Chandrasena worships Mahakala day and night. Same thing Vedapriya’s sons did a chapter earlier, really.
This next bit is my favourite in both chapters, because the one at the centre of it is a child.
A cowherd widow had a son of five. He had been watching the king at his worship, and he went and picked up a pebble, set it up as a Shivalinga close to where the kings had camped, and worshipped it.
His mother got angry and threw it away.
The boy fainted. When he woke up, a golden Mahakala temple stood where the camp had been.
The kings outside could no longer miss that Mahadev’s favour was on Chandrasena. They made peace, worshipped Mahakala themselves and put the cowherd boy in charge of the cowherds of their own lands, which is quite a promotion for somebody who was five.
A siege, ended by a child’s pebble puja.
What Hanuman ji told the kings about Shrikara
Hanuman ji in a Mahakal story sounds odd at first. Chapter 17 brings him in right at this point all the same. The lord of the monkeys appears in front of the kings and the cowherd’s son.
His words to the kings are plain. For human beings, he says, there is no goal but Bhagwan Shiva.
Then he looks a long way forward. In the eighth generation of this boy’s line, he says, the cowherd Nanda will have a son. Bhagwan Krishna, in whom Bhagwan Vishnu is born.
The name Shrikara comes from Hanuman ji, and so does the boy’s initiation into the worship of Bhagwan Shiva. Both of them, Shrikara and Chandrasena, end up in Bhagwan Shiva’s realm.
One thing about names, since you may hear this second story told other ways.
In the Purana he’s Shrikara. The kings who besieged the city get no names there at all. Shrikhar, the form you may know, comes from regional tellings, and a man called Vridhi comes from them too, as do the kings Ripudamana and Singhaditya. Later traditions, all of them. None of it is in chapter 17.
What the clay linga & the pebble have in common
Put the two chapters side by side and the same kind of person sits at the centre. Someone with no power. Four brothers without a weapon, then a boy of five.
And the worship is tiny both times. Some clay. A pebble off the ground beside an enemy camp.
Mahadev answers it anyway.
Where the two stories differ is the threat and the ending: in chapter 16 a demon wants the worship of Bhagwan Shiva stopped and Bhagwan Shiva rises to destroy him, while in chapter 17 rival kings want the Chintamani jewel, and the siege ends with a golden temple and a peace.
Call all of that a devotee’s reading, and it’s mine as well. The text spells out no lesson. All it does is tell you what happened, and then it moves on to the next thing. Same with the name. Kala is a word for time and also for death. Devotees who read the name that way take Mahakala as the one even time answers to. That is their reading again, not something the Purana explains, because the Purana gives the name and goes straight on with the story.
The Purana leaves Mahadev in the chasm. People still go to Ujjain to see him. The Mahakaleshwar Temple page on Tirth, Temple page on Tirth has the darshan hours, the Bhasma Aarti and help with planning the day.
Frequently asked questions
The demon Dushana attacks Avanti in the Shiva Purana and tells its brahmins to give up the worship of Bhagwan Shiva. Four brothers sit in prayer before a clay linga. The ground splits, Bhagwan Shiva rises as Mahakala and destroys Dushana, and when the brothers ask him to, he stays on there as the linga Mahakaleshwar.
You’ll find it in chapters 16 and 17 of the Koti Rudra Samhita, which is part of the Shiva Purana. Dushana and Vedapriya’s sons fill chapter 16. Chapter 17 belongs to King Chandrasena and the cowherd boy.
Shrikara was five, the son of a cowherd widow, and while Ujjayini was under siege he set up a pebble and worshipped it as a Shivalinga. Hanuman ji gave him his name, which the Purana spells Shrikara. Shrikhar is how regional tellings say it.
He does, in chapter 17. There he tells the assembled kings that the one goal of life is Bhagwan Shiva, and says Bhagwan Krishna will be born in the boy’s line eight generations on. Then he names the boy Shrikara and initiates him.
They are linked. Mahakala is the fierce form in which Bhagwan Shiva rose at Avanti, and Mahakal is how that name is said in everyday speech. Mahakaleshwar is the name of the linga he stayed in, Ujjain’s jyotirlinga.
Continue on Tirth
- Mahakaleshwar Temple, Temple page on Tirth
: darshan hours, the Bhasma Aarti and how to plan your visit.
- The Kedarnath story: another jyotirlinga legend.
- The Badrinath story: another temple legend.
- Tirth Spiritual Calendar, Spiritual Calendar on Tirth
: the Mahashivratri date for your city.
- Temples on Tirth, Temple page on Tirth
: find the next temple you want to see.



