In the ancient age of the Rishis, there lived a pious sage named Mrikandu and his devoted wife, Marudmati. They were practitioners of deep austerities and lived a life of virtue, yet their hearts were heavy with a singular sorrow: they were childless. For many years, they performed intense penance dedicated to Lord Shiva, the Destroyer and the most compassionate of the Trimurti. Pleased by their unwavering devotion, Lord Shiva appeared before them in a vision of blinding light, offering them a choice that would test the very limits of their wisdom. He gave them two options for a son: they could have a hundred children who would live long lives but possess dull wits and selfish hearts, or they could have a single son who would be remarkably intelligent, exceptionally virtuous, and a paragon of devotion, but who would live only until his sixteenth year. Without hesitation, Mrikandu and Marudmati chose the latter, preferring one brief flash of spiritual brilliance over a century of mediocrity. In due time, Marudmati gave birth to a beautiful boy whom they named Markandeya.
From his earliest childhood, Markandeya was a child unlike any other. He possessed an innate understanding of the Vedas and a natural inclination toward the worship of Lord Shiva. His presence brought a divine aura to the hermitage, and he grew into a youth of such profound wisdom and kindness that he was beloved by all who met him. However, as the years passed, a shadow of grief began to darken the faces of his parents. As Markandeya approached his fifteenth year, he noticed the tears in his mother's eyes and the trembling in his father's voice during their evening prayers. With the maturity of a sage, he asked them to reveal the cause of their distress. With heavy hearts, Mrikandu and Marudmati confessed the terms of the boon Shiva had granted them. They told him that according to the laws of destiny, his life was to conclude upon the dawn of his sixteenth birthday. To their surprise, Markandeya did not tremble. Instead, he smiled with a serene confidence, telling his parents that Lord Shiva, the master of all destiny, was the only refuge one needed against the fear of death.
Determined to spend his remaining time in total surrender to the Divine, Markandeya began a pilgrimage toward the southern lands, eventually reaching the sacred site of Thirukadaiyur, near the shores of the Bay of Bengal. There stood a magnificent temple where Shiva was worshipped as Amritaghateswarar. Markandeya fashioned a Shiva Lingam out of the sacred mud and sand, or as tradition tells, he worshipped the ancient self-manifested Lingam within the temple precincts. He spent his days and nights in 'Japa,' chanting the Maha Mrityunjaya Mantra—the great victory-over-death chant. As the fateful morning of his sixteenth birthday arrived, the atmosphere in the temple grew thick with a supernatural tension. Markandeya sat cross-legged before the Lingam, his hands clasped in prayer, his mind entirely absorbed in the form of the Lord. He had reached a state of 'Samadhi,' where the boundary between the devotee and the deity begins to blur.
Suddenly, the air in the sanctum turned icy cold, and the flickering oil lamps grew dim. The terrifying figure of Yama, the God of Death, appeared riding his massive black buffalo. Yama was a formidable sight, with skin the color of a storm cloud, eyes that glowed like burning embers, and a crown that radiated the authority of the final law. Usually, Yama sends his messengers, the Yamadutas, to collect the souls of the departed, but in the case of a soul as spiritually potent as Markandeya, the King of Dharma felt he had to intervene personally. Yama approached the boy and spoke in a voice that sounded like the rumbling of distant thunder, informing Markandeya that his time on the earthly plane had expired and that he must follow him to the halls of judgment. Markandeya, however, did not move. He remained anchored in his devotion, his arms wrapped tightly around the Shiva Lingam, refusing to leave the presence of his Lord.