Ravana could not return before the specified time and Ganesha called Ravana thrice quickly and placed the Lingam on the ground . Ravana chased the boy and gave a blow on His head. Lord Ganesha vanished from the scene and Ravana tried his best to lift the Atma Lingam but in vain. The Linga Murthi was deeply rooted by that time and Ravana could only feel the top of the Lingam and felt it as the ear of the Cow. Hence He named Him as Go karneshwara and Mahabaleshwara.
The west facing Temple was constructed during the period of Mayuravarman ( 345- 365 CE) The Vimanam above the Sanctum is in Dravidian style. There is a prakaram aound the sanctum and a separate shrine for Goddess Parvathi ( Thambra Gowri). The Temple was visited by Vijayanagar Kings and Chatrapati Shivaji.
As the place is regarded as pious as Kasi, devotees pay their respects to their ancestors by performing '" Pithru Karmas'" on the banks of Koti Theertham.
The Main deity of the Temple is sung in Thevaram Hymns that date back to 6-7th century. Tamil Saint Gnanasambandhar sang a ' Padhigam' for this place during his visit to Kalahasthi. It was Saint Appar (Thirunavukkarasar) who walked all the way to Gokarna and sang a Padhikam in praise of Lord Gokarna. He made reference to the sea shore on which the Temple stood. The Temple authorities should include this Historic incident in their publications and inscribe the Hymns on the wall of the Temple to preserve the ancient History related to it.
Among the Pancha Linga kshethrams of this region, the other four Temples are at Dhareshvar, Gunavantheshwar, Mrudeshwar and Shedjeshwar.