After his death the Linga disappeared into the earth. Then his son Muchukunda offered similar prayers to Shiva and got a second Shiva Linga, which too disappeared in course of time. Centuries passed. The third Shiva Linga was handed down to Satasoman, a king of Mushaka/Kolathiri/Chirakkal Royal Family, who then ruled the region. He was an ardent devotee of Shiva. On the advice of sage Agastya, he prayed to Lord Siva, who granted him the Shiva Linga. The king installed it in the present temple built by him. However, many legends associated with the Temple, claim Agastya Himself as installing the Shiva Linga (which is believed as per those legends to be a 'Jyothirlingam').