In the Shiva Purana, when Indra and Brihaspati were going towards Mount Kailash to meet Shiva, they met a mendicant on the way who was Shiva himself. Indra did not recognize and was asking him about the whereabouts of Shiva, for which the medicant did not reply. Getting infuriated, Indra used his weapon, the Vajrayudam on Shiva. Shiva was angry at Indra and immediately opened the third eye to destroy Indra. Brihaspati recognized Shiva and prayed to him, requesting him to pardon Indra. To avoid killing Indra, Shiva directed the fire from his eye towards the ocean. The fire when it met with the ocean created an asura who Brahma named Jalandhara as he was born out of ocean. He also told the celestial deities that since he emanated from the third eye of Shiva, he can be killed only by Shiva.