Gokarna is also mentioned in the Shrimad Bhagawat Purana as being the home of the two brothers Gokarna and Dhundhakari and the Bhagawat also gives details of the difference in their temperament and nature and their exploits.
Another mythological reference to Gokarna describes how Ravana, the demon-king of Lanka received the atmalinga, from Shiva, after he had performed a penance at Mount Kailash. Shiva instructed Ravana that the atmalinga should not be placed on the ground as it would establish itself where placed on earth. On his way back to Lanka, Ravana stops for his evening prayers at Gokarna. To prevent Ravana from getting a weapon as powerful as the atmalinga, Ganesha, in the disguise of a Brahmin boy, tells Ravana that he will hold the atmalinga until Ravana finishes his prayers. As soon as he receives the atmalinga, Ganesh promptly puts it down. Ravana tries to extricate it resulting in throwing the coverings of the Linga to Dhareshwar, Gunavanteshwar, Murudeshwar and Shejjeshwar temples.
Tamil saints Nayanars like Appar and sambanthar praised the deity in their hyms tevaram
The earliest history of the city is not known. It was a center for India's traditional and ancient Ganja Culture. A sect of brahmins fled from the Gomantak to escape forcible conversions by the Portuguese and British and settled in and around Gokarna in 15th century. It was part of Sodhe and Vijayanagar kingdoms. Later when Konkan region including Goa was occupied by Portuguese, it became part of their rule. Few temples were destroyed by the Portuguese in 1714 and then rebuilt later in the 18th century and also under the supervision of Guru H.H. Shrimat Anandashram Swamiji in 1928.
Gokarna is about 453 km from Bangalore, 240 km north of Mangalore and about 59 km from Karwar. It is between the Gangavali and Agnashini rivers and situated along the Karwar coast by the Arabian Sea. It is near to college towns Suratkal and Manipal.
Gokarna can be reached by buses and maxicabs from Kumta(36 km), Ankola(25km) and Karwar(59km) on national highway 17(NH-17 ). Karnataka state road transport corporation also runs long journey buses from many cities like Goa, Bangalore and Mangalore. Private buses(Vijayanad RoadLines-VRL, Sugama, SeaBird) operate night journeys from the capital city of Bangalore to Gokarna daily. It can be reached by train run by Konkan railway on Mumbai to Mangalore route. The railway station is 6km away from the town.
Gokarna is also an important centre of Sanskrit learning and houses Bhandikeri Math and Toggu Math. It is a place where sanksrit knowledge is passed from generations in Brahmis families. Many Hindus also perform last rites of a person here.
It is situated at the western end of the main street. The main deity here is two-armed, standing, and at least 1500 years old. The idol of Lord Ganesha also is ancient. In the sanctuary is a stone linga, encased in brass, placed on a coiled stone serpent. The floor of the hall in front has an intricate engraving of a giant tortoise.
Gokarna is also famous for its beautiful beaches and landscapes. The main beaches in Gokarna are the Gokarna beach, Kudle Beach, Om Beach, Half moon Beach and Paradise Beach(also known as Full moon). The Gokarna beach forms the coast of the town while the other four beaches lies towards the south of Gokarna. Kudle and Om are around 6 km from Gokarna town along a muddy hill; they are accessible by rickshaw or foot. Half moon and Paradise are beyond Om beach and are accessible only by foot or boat. Om beach is named because it's shaped like the auspicious ॐ [Om] symbol. Om beach is the only naturally Om shaped beach. Two other beaches Paradise and Half Moon are smaller and remote beaches.