Markandeya 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 aniconic form of Shiva Lingam. 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. Yama then came in person to take away Markandeya's life, and sprung his noose around the young sage's neck. By accident or fate the noose mistakenly 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 devout youth would live forever. For this act, Shiva was thereafter also known as Kalantaka ("Ender of Death").
Markandeya Story
Markandeya 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 aniconic form of Shiva Lingam. 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. Yama then came in person to take away Markandeya's life, and sprung his noose around the young sage's neck. By accident or fate the noose mistakenly 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 devout youth would live forever. For this act, Shiva was thereafter also known as Kalantaka ("Ender of Death").