The Sack of Somnath in 1026 was a military campaign orchestrated by Mahmud of Ghazni, the ruler of the Ghaznavid Empire, against the Chaulukya dynasty of Gujarat. This is considered Mahmud's fifteenth invasion of India, which saw strategic captures and battles that culminated in the destruction of the revered Somnath Temple. Facing staunch resistance, Mahmud's forces emerged victorious, resulting in significant casualties. Entering Somnath in early January, Mahmud looted and burned the temple, earning him a title "The Idol Breaker".
The Somnath Temple, situated in Veraval, Gujarat, India, is a sacred Hindu temple. In 1026, Gujarat was under the rule of Bhima I from the Chalukya dynasty. Mahmud of Ghazni conducted multiple attacks on Indian kingdoms during that era. The Mahmud gained renown through campaigns in India, vassalizing the Gurjara Pratihara dynasty and overthrowing the Hindu Shahi dynasty. His campaigns against the Chandelas and other Hindu chiefs established him as a formidable figure among Indian kings. Bhoja consolidated significant power, effectively reducing the Chaulukya ruler Bhima of Patan to the status of a vassal. Consequently, Saurashtra then ruled by the Abhira king Mandalika likely functioned as a feudatory under BhimaâÂÂs and by extension, BhojaâÂÂs influence.
The temple employed 350 persons, both male and female, to sing and dance before the linga every day. The income of the temple was collected from 10,000 villages and from the offerings of the devotees. The temple possessed vast wealth in gold, silver, pearls, and rich jewels, which had been accumulated over the course of centuries.
Historian Ibn al-Athir stated that during Mahmud's invasion of Indian kingdoms, he destroyed idols and temples on his way. The Hindus said that Somnath was displeased with those idols, and if it had been pleased with them, then none could have harmed them. When Mahmud heard this, he decided to destroy the idol of Somnath.
On 18 October 1025, Mahmud of Ghazni embarked on a march from Ghazni, leading 30,000 cavalry. Each soldier was personally given two camels for essential resources like food and water. The Sultan himself loaded his arrangements with 20,000 to 30,000 camels. On 26 November, after a rest in Multan, the army resumed their journey, proceeding through the desert. Mahmud initially seized the fort of Ludrava (modern Lodurva), near Jaisalmer. He continued to march crossing the Jaisalmer state and Mallani. By the end of December, he reached Anhilwara, prompting its ruler, Bhima I, to flee to the fort of Kanthkot in Cutch upon hearing of the Ghaznavid approach, fearing for his life. Moving southwards, Mahmud reached Mundhera, where the Hindus made a significant effort to halt the advance of the invading Muslim army. Approximately 20,000 warriors rallied under their local chiefs but were ultimately defeated and dispersed. Following this siege, he proceeded directly to Delvada, near Una, where the local population, believing the deity Somnath would divinely intervene to destroy the Muslim forces, offered little resistance. Consequently, Delvada was captured with minimal opposition. He then advanced towards Somnath, seizing the Somnath fort from Mandalika ruler of Abhira dynasty, the fort's overseer on 6 January AD 1026.
Known as his fifteenth invasion of India, Mahmud's Somnath expedition targeted the temple located in the southernmost part of Kathiawar. The Hindus, who assembled on the rampart of the port, were passing their time in merry making, believing that Somanatha had drawn the Muslims there only to annihilate them for the sins they had committed in demolishing idols elsewhere. Hence, the leader had fled away in cowardice with his family to a neighbouring island.
Mahmud laid siege on the fort of Somnath. The garrison, supported by Brahmins and devotees of the idol, defended. On Friday, 7 January 1026, the Ghaznavids launched a fierce assault with a barrage of arrows, forcing the defenders to abandon the battlements. By the afternoon, during the Jumu'ah prayer time, the invading army scaled the walls and announced their success with the call to prayer. The Hindus retreated to the temple, prayed before the idol, and, with renewed resolve, launched a counterattack, driving the Ghaznavid army from their captured positions by evening. On the third day of the battle, the Ghaznavid forces attacked, recaptured the fortifications, and drove the Hindus to the shrine's gates, where a melee ensued. Although the attackers found themselves surrounded, they ultimately triumphed, defeating the Chalukyas and causing 50,000 casualties among the defenders. Many tried to flee on boats but were slain or drowned by a guard posted along the sea coast.
Mahmud of Ghazni, upon entering the temple, plundered the idols and shattered the Shiva Linga into pieces. He extensively looted and razed the temple to the ground, plundering 20,000,000 dinars. Remains of the linga were brought to Ghazni, where they were used to make steps at the gate of the Jami Mosque to be trampled by the Muslims going there for their prayers. The campaign thus got Mahmud the title 'The Idol Breaker.'
Triggered by the destruction of the idol, a wave of indignation swept among the Hindus. Neighbouring chieftains under Raja Paramdeva of Abu blocked the Ghaznavid army's passage, forcing them to take the passage of the Aravalli hills and the Rann of Kutch. To avoid conflicts, Mahmud took the watery route of Cutch and Sindh. When Bhima I heard the news of Mahmud's approach, he abandoned the fort of Kanthkot. Mahmud captured the fort, plundered it, and left for Ghazni. He then marched to Mansura. Khafif, the Qarmatian ruler, fled across the river and took refuge in a date-palm forest. Then he sent some of his officers after him, who surrounded his camp and put many of his followers to death. Mahmud continued his return while facing numerous attacks from the Jats on the way. On 2 April 1026, he returned to Ghazni.
The news of triumph sent a wave of praise all over the Muslim world, and the delighted Caliph al-Qadir heaped titles and honors on him, his sons, and his brother. Mahmud got the title of Kahfud-Dawlah wa'l-IslÃÂm, and Mas'ud was bestowed Shihabu'd-Dawlah wa JamÃÂlu l-Millah, following Jalalud-Dawlah wa Jamalu'l-Millah to Muhammad and Adudu'd-Dawlah wa Muayyidu'l-Millah to Yusuf.
In 1027, Mahmud conducted his sixteenth and last military engagement as a naval attack near the Indus River, where Mahmud of Ghazni inflicted a severe defeat on the Jats, compelling them to retreat with substantial losses.
Mahmud's raided Gujarat, plundered the Somnath temple and broke its jyotirlinga. He took away booty of 2 million dinars. The conquest of Somnath was followed by a punitive invasion of Anhilwara. Some historians claim that there are records of pilgrimages to the temple in 1038 that do not mention damage to the temple. However, powerful legends with intricate detail had developed regarding Mahmud's raid in the Turko-Persian literature, which "electrified" the Muslim world according to scholar Meenakshi Jain.
Historians including Thapar, Eaton, and A. K. Majumdar have questioned the iconoclastic historiography of this incident. Thapar quoted Majumdar (1956): Thapar also argued against the prevalent narrative: