Lord Maha Vishnu learned that Ravana will become all powerful by worshipping the 'Atma Linga' and menace to the world and Ravana's conviction that nobody could defeat him, once he acquired the very power of Shiva. Maha vishnu devised a plan to install the linga somewhere and as he thought that Lord Ganapati was alone capable of doing it, he along with all the gods pleased Ganapati to execute the plan. Lord Ganapati accepts and reaches Gokarna as a Brahmin boy.