The name Markandeshwar is associated with Maharishi Markandeya, a great devotee of Shiva. The Markandeshwar Mahadev temple is located in the town of Shahbad Markanda, which is situated in the Kurukshetra district of Haryana in North India. Shahbad Markanda lies on the banks of the river Markanda, a tributary of the Ghaggar, and supposed to be a part of the ancient Vedic Saraswati River basin system. The river derives its name from Maharishi Markandeya as well and several ancient ashramas of Rishi Markandeya can be seen along the banks of the river in the neighboring districts.
Story of Maharishi Markandeya
Markandeya was an exemplary son, who was destined to die at the age of 16. He grew up to be a great devotee of Shiva and on the day of his destined death he continued his worship of Shiva in His form of Shivalingam. The messengers of Yama, the God of death were unable to take away his life because of his great devotion and continual worship of Shiva. Finally, Yama came himself to take Markandeya's life away and sprung his noose around the young sage's neck. By mistake, the noose landed around the Shivalingam and out of it, Shiva emerged in all his fury attacking Yama for his act of aggression. After defeating Yama in battle to the point of death, Shiva then revived him, under the condition that the young Markandeya would live forever. Thus, the Maha Mrityunjaya Stotra is attributed to Maharishi Markandeya.
History of the temple
The Markandeshwar Mahadev temple is supposed to be the place where the young Markandeya was praying to Shiva in order to win over his destiny. This is where Shiva fought with Yama and blessed Maharishi Markandeya with the boon of immortality. The original temple dated back to pre-Mahabharat times and was founded in the third millennium B.C. The current structure is more recent and dates back to the early 20th century.