 When lord Yama came to take his soul away, Markandeyan approached Lord Vishnu (at the Navamukundan temple), to request him to save him from death.Lord Vishnu had to turn him down, and direct him to request Lord Siva instead.So off Markandeya goes to Lord Siva.