History of the Somnath Temple - 1

Somnath is an ancient city on the West coast of India. Somnath has a history of at least 1,500 years that is well documented and there have been many references to this port city in the Mahabharata and the Puranas. The story of Somnath has to be looked at from different perspectives for the city has contributed to various different aspects of Indian life, most importantly to the soul of Indian civilizational values.

References in the Mahabharatas and the Puranas

Somnath derives its name from the mythological story where Chandra, the moon, worshiped Shiva at this place to get cured of the curse that Daksha (Chandra's father-in-law) had decried on him. Since Chandra worshiped Shiva here, Shiva gets the name Somnath, which means 'lord of the moon.' The Mahabharata describes Somnath as a city south of the confluence of River Sarasvati to the sea. Somnath is host to one of the twelve jyotirlingas. Krishna met his end in a place called Veraval, which is near Somnath. Arjuna is said to have performed the last rites of Krishna at the confluence of rivers Kapila and Hiranya.


[contextly_sidebar id="78hfMZOGrsyssfVkk3cJEyht7vbw4QvO"]


Somnath as a financial hub

Being a port city, it was an important center for economic activity and was known to have a well-organized port, which connected to West Asia and Africa. The Chinese traveler to India Hiuen Tsang, is known to have visited Saurashtra area between 641 and 644 CE. According to Tsang’s observation, Somnath was a thickly populated city that had huge establishments of religious and economic activities. Dandin’s Dashakumaracharita, which was written around the middle of 7th century CE, mentions a prosperous trader from Somnath, who had well-equipped ships to assist his trade. The Arab writer Jaun-ul-Akbar of 11th century CE says while describing Somnath, "On the coast of Hindustan lies a big city named Sammath, It is as important to Hindus as is Mecca to Muslims." The 13th century CE traveler Marco Polo has noted Somnath as a huge center for trade and religious activity.

History of the temple till 1000 CE

The temple has been destroyed and re-built multiple times over the last 1,300 years. The popular belief was that the first temple existed at Somnath at the start of the Common Era. Since 8th century CE, the temple has been a target for invading armies for 1,000 years. Below are the notable events till the end of the first millennium:

  1. The first temple was believed to have existed at the start of the Common Era. This temple is supposed to have been built by wood/bamboo.
  2. Around 649 CE the Maitrika kings of Vallabhi Gujarat, re-built the worn out centuries old temple.
  3. In 724 CE, Junayad was appointed as the governor of Sindh region. In 725 CE Junayad marched along with his army towards Marwar, Barauch, Ujjaini, and Malwa. He defeated the armies of Vallabhi. Merutunga’s work Prabandha Chintamani, a early 14th century CE work mentions the fall of Vallabhi into hands of invading Arab armies. The first major damage to Somnath temple happened during this time. The temple was renovated by Chalukya rulers of South Gujarat after the Arab armies receded.
  4. Nagabhatta II of Pratihara Dynasty was ruling over Kanauj during 815 CE. He worshiped Shiva at Somnath during his journey in Gurjara. Nagabhatta II expanded the Somnath temple into a huge complex built of red-sand stone.
  5. Graharipu had become the default ruler of Gujarat after the fall of Pratihara dynasty and Chalukyas in Gurjara. In 942 CE, Mularaja, commander of a small area called 'Sarasvatamandala' defeated Graharipu and captured Anhilawada (Patan). Hemachandra, the Jain poet who lived about a century after this period refers to Mularaja as the 'Architect of Gurjara.' There is also a legend which points to Mularaja as a descendant of Chalukyas. Mularaja was a devotee of Shiva and during his reign the Somnath temple is known to have gained prominence. Mularaja defeated Sapadalaksha, the ruler of Kutch, and ruled over most of what is present day Gujarat for about fifty years till his death in 996 CE. The rule of Mularaja and the prosperity of his kingdom are also mentioned in other literary works of that period like Kirtikaumudi, Vasanatavilasa, and Sukrtasankirtana. The Somnath temple had undoubtedly become rich and prosperous by the turn of the millennium.

Mahmud Ghazni’s entry into India

In 997 CE, in the Ghazni kingdom (in present day Pakistan-Afghanistan Border), the death of ruler Sebüktegīn triggered a war of succession between his sons. Mahmud who was known as a great fighter defeated his elder brother Ismail, sent him out of the kingdom, and became the undisputed ruler of areas to the west of River Sindhu and expanded his kingdom westwards till present day Iraq. Mahmud was very ambitious and wanted to attack and rule India. In 1000 CE, he crossed River Sindhu. The barbarity of the onslaught of Mahmud caught the Indian rulers totally unprepared. Battles in India till that time used to happen for establishing military might and becoming an emperor. Indian rulers were now facing up to a ruthless aggressor who wanted to kill people and rob the wealth. This ill-preparedness of Indian rulers laid the foundations for suffering under foreign rule for the next 1,000 years.

Mahmud Ghazni’s first hurdle

Shahi King Jayapala lost the decisive battle to Mahmud in 1001 CE on the eastern bank of Sindhu. (Jayapala had lost his territories on the western bank of Sindhu in 990 CE to Mahmud’s father.) After losing the battle, Jayapala entered into fire and died. His son Anandapala took charge of the kingdom while acting as a subordinate to Mahmud. Anandapala built a reasonable army and challenged Mahmud in 1004 CE but he was badly defeated and the kingdom was plundered. Anandapala fled to Kashmir. Mahmud was under constant threat from the eastern banks of Sindhu and faced a western threat from Ilaq Khan. At this juncture, Anandapala committed a monumental blunder by offering to help Mahmud to fight the western threat. Anandapala sent a message to Mahmud saying, "You have won me and my kingdom. I can’t see you being attacked." The combined forces of Shahis and Ghaznis defeated Ilaq Khan. In a pleasant gesture of returning the favor, Mahmud attacked Shahis in 1008 CE. Ghazni comprehensively captured northern Sindh and Punjab regions. Anandapala continued to look after regions around Lahore. Anandapala died in 1012, paving way for his son Trilochanapala to succeed him. Mahmud attacked Trilochanapala immediately after Anandapala’s death. Trilochanapala fought valiantly and took control but finally lost the war. Many historians have described that Trilochana (the three-eyed one) in battle looked like Shiva himself out to destroy the enemies. Though Trilochanapala in exile put up some resistance for some time, it didn’t cause any harm to Mahmud or his army.

Loot of wealth from India

Mahmud attacked Nagarkot in 1009 and Thaneshwar in 1011. After the end of Trilochanapala, Mahmud was unchallenged till the western banks of Yamuna. In 1018, he crossed Yamuna and attacked Kanauj. He plundered huge amounts of wealth from Kanuaj. Between 1019 and 1022 CE Mahmud faced stiff resistance from Vidyadhara, the Chandela king. There was no decisive outcome of these wars and Mahmud retreated back to Punjab. Even during all these wars, Mahmud looted temples and collected huge amount of wealth.

Mahmud turns towards the South

In October 1025 CE, Mahmud started from Ghazni with full-fledged preparations. His army consisted of 30,000 horses; 30,000 camels to negotiate the desert and carry water; and hundreds of thousands of foot soldiers. Towards the end of November, he rested in Multan and entered the desert. He advanced southwards and took control of Ludhrava valley. He reached Anhilawada (Patan) by end of December and rested there for some time. Bhimdeva of the Solanki dynasty, who was a subordinate to Raja Bhoja of Ujjaini faced up to Mahmud at Modhera, but lost. The kings of Gurjara started to unite under the leadership of Bhoja. Sensing this political development, Mahmud proceeded straight towards Somnath without unnecessarily provoking local rulers. According to Muslim historians Mahmud reached Somnath on 6 January 1026. Mahmud surrounded the city of Somnath. The local ruler of Somnath fought for eight days and kept the invading armies out of the city. Finally the local army succumbed and this gave way to the first destruction of Somnath temple. The temple was completely razed down. (Some remains of the temple built by Nagabhatta II and demolished by Mahmud was seen in the lower segments of the site of the shrine during the survey in 1947-48.) He broke the shivalinga into two pieces and killed thousands of unarmed devotees who came forward to protect the temple. Mahmud’s joy was short lived as he stared up to an alliance under the leadership of Bhoja, and started to move back towards his kingdom. The army of the alliance chased Mahmud till Sindh. Alberuni records the arrival of Mahmud's army to Multan in April 1026. Some of the soldiers of Mahmud's army were taken as prisoners, but they were pardoned and allowed to live as normal citizens.



Vishwanath is a software engineer by profession. He is deeply interested in Indian history, art, and classical music.

Prekshaa Publications

Prekṣaṇīyam is an anthology of essays on Indian classical dance and theatre authored by multifaceted scholar and creative genius, Śatāvadhāni Dr. R Ganesh. As a master of śāstra, a performing artiste (of the ancient art of Avadhānam), and a cultured rasika, he brings a unique, holistic perspective...


इदं किञ्चिद्यामलं काव्यं द्वयोः खण्डकाव्ययोः सङ्कलनरूपम्। रामानुरागानलं हि सीतापरित्यागाल्लक्ष्मणवियोगाच्च श्रीरामेणानुभूतं हृदयसङ्क्षोभं वर्णयति । वात्सल्यगोपालकं तु कदाचिद्भानूपरागसमये घटितं यशोदाश्रीकृष्णयोर्मेलनं वर्णयति । इदम्प्रथमतया संस्कृतसाहित्ये सम्पूर्णं काव्यं...


इदं खण्डकाव्यमान्तं मालिनीछन्दसोपनिबद्धं विलसति। मेनकाविश्वामित्रयोः समागमः, तत्फलतया शकुन्तलाया जननम्, मातापितृभ्यां त्यक्तस्य शिशोः कण्वमहर्षिणा परिपालनं चेति काव्यस्यास्येतिवृत्तसङ्क्षेपः।


इदं खण्डकाव्यमान्तं मालिनीछन्दसोपनिबद्धं विलसति। मेनकाविश्वामित्रयोः समागमः, तत्फलतया शकुन्तलाया जननम्, मातापितृभ्यां त्यक्तस्य शिशोः कण्वमहर्षिणा परिपालनं चेति काव्यस्यास्येतिवृत्तसङ्क्षेपः।


इयं रचना दशसु रूपकेष्वन्यतमस्य भाणस्य निदर्शनतामुपैति। एकाङ्करूपकेऽस्मिन् शेखरकनामा चित्रोद्यमलेखकः केनापि हेतुना वियोगम् अनुभवतोश्चित्रलेखामिलिन्दकयोः समागमं सिसाधयिषुः कथामाकाशभाषणरूपेण निर्वहति।


अस्मिन् स्तोत्रकाव्ये भगवन्तं शिवं कविरभिष्टौति। वसन्ततिलकयोपनिबद्धस्य काव्यस्यास्य कविकृतम् उल्लाघनाभिधं व्याख्यानं च वर्तते।

Karnataka’s celebrated polymath, D V Gundappa brings together in the third volume, some character sketches of great literary savants responsible for Kannada renaissance during the first half of the twentieth century. These remarkable...

Karnataka’s celebrated polymath, D V Gundappa brings together in the second volume, episodes from the lives of remarkable exponents of classical music and dance, traditional storytellers, thespians, and connoisseurs; as well as his...

Karnataka’s celebrated polymath, D V Gundappa brings together in the first volume, episodes from the lives of great writers, poets, literary aficionados, exemplars of public life, literary scholars, noble-hearted common folk, advocates...

Evolution of Mahabharata and Other Writings on the Epic is the English translation of S R Ramaswamy's 1972 Kannada classic 'Mahabharatada Belavanige' along with seven of his essays on the great epic. It tells the riveting...

Shiva-Rama-Krishna is an English adaptation of Śatāvadhāni Dr. R Ganesh's popular lecture series on the three great...


ಮಹಾಮಾಹೇಶ್ವರ ಅಭಿನವಗುಪ್ತ ಜಗತ್ತಿನ ವಿದ್ಯಾವಲಯದಲ್ಲಿ ಮರೆಯಲಾಗದ ಹೆಸರು. ಮುಖ್ಯವಾಗಿ ಶೈವದರ್ಶನ ಮತ್ತು ಸೌಂದರ್ಯಮೀಮಾಂಸೆಗಳ ಪರಮಾಚಾರ್ಯನಾಗಿ  ಸಾವಿರ ವರ್ಷಗಳಿಂದ ಇವನು ಜ್ಞಾನಪ್ರಪಂಚವನ್ನು ಪ್ರಭಾವಿಸುತ್ತಲೇ ಇದ್ದಾನೆ. ಭರತಮುನಿಯ ನಾಟ್ಯಶಾಸ್ತ್ರವನ್ನು ಅರ್ಥಮಾಡಿಕೊಳ್ಳಲು ಇವನೊಬ್ಬನೇ ನಮಗಿರುವ ಆಲಂಬನ. ಇದೇ ರೀತಿ ರಸಧ್ವನಿಸಿದ್ಧಾಂತವನ್ನು...


“वागर्थविस्मयास्वादः” प्रमुखतया साहित्यशास्त्रतत्त्वानि विमृशति । अत्र सौन्दर्यर्यशास्त्रीयमूलतत्त्वानि यथा रस-ध्वनि-वक्रता-औचित्यादीनि सुनिपुणं परामृष्टानि प्रतिनवे चिकित्सकप्रज्ञाप्रकाशे। तदन्तर एव संस्कृतवाङ्मयस्य सामर्थ्यसमाविष्कारोऽपि विहितः। क्वचिदिव च्छन्दोमीमांसा च...

The Best of Hiriyanna

The Best of Hiriyanna is a collection of forty-eight essays by Prof. M. Hiriyanna that sheds new light on Sanskrit Literature, Indian...

Stories Behind Verses

Stories Behind Verses is a remarkable collection of over a hundred anecdotes, each of which captures a story behind the composition of a Sanskrit verse. Collected over several years from...