Lord Shiva is worshipped as Mahakal. Located in the ancient city of Ujjain in Madhya Pradesh, is the temple of Mahakaleshwar. This temple is one of the twelve Jyotirlingas in India. There is an interesting story which explains about Mahakaleshwar form of Shiva. This form of Lord Shiva is a fierce form which is beyond imagination and description. This story took place when Ujjain was known as Avanti and is mentioned in the Shiva Purana.
THE STORY OF MAHAKALA
Once there lived a pious man in Avanti (nowadays Ujjain), who was an ardent devotee of Lord Shiva. He had four sons and the family worshipped Lord Shiva daily.Not far away from their home on a hill named Ratanmala. There lived an Asura (demon) named Dooshana. Demon Dooshana hated all forms of Shiva and Vedic worship. He went around killing people who worshipped Shiva. Soon Dooshana came to know about to know about the family in Avanti that worshipped Lord Shiva.
He arrived with his army and attacked the city. But the family continued to worship Shiva in the form of a Shivling.
Finally, the demon and soldiers reached the home of the pious man and started hurling weapons. The demon broke open the door and advanced towards the Shivling by raising a sword.
Suddenly, there was a deafening sound and there appeared a dreadful form beyond explanation before the Shivling. A single glance by the Mahakal form of Shiva burned the demon and his army into ashes. Uncontrollable and unsatisfied, the form of Shia gave a huge roar; the entire universe trembled in fear.
But the family was delighted to see Lord Shiva and continued chanting his glory and prayers. Before his true devotees, Shiva is always the Bholenath - one can be easily influenced. Hearing the prayers of his devotees, his anger subsided.
But the family who was aware of the dangers of the world realized that the form of Shiva as Mahakala was essential for peace and prosperity and asked him to reside in the form in Ujjain. Since then Shiva has remained at Ujjain Mahakal Temple as Mahakala - the one with the power to annihilate all living and non-living.