Mahmud of Ghazni and Somnath: The Raids, the Temple and the Gates That Never Were
For a quarter of a century, the Sultan of Ghazni rode into India. He broke the Hindu Shahi kings of Punjab near Peshawar, took Lahore, and in January 1026 sacked the sea temple of Somanatha. Here is the full story: what his own chroniclers boasted, what the scholar Al-Biruni saw, what Gujarat’s stones say, the British ‘gates of Somnath’ that were never Somnath’s, and the argument that still runs from 1951 to today.
In short
- Mahmud of Ghazni led raids into India for about 25 years, from 1001 to 1027. His first great victory was over the Hindu Shahi king Jayapala near Peshawar on 27 November 1001.
- He beat Jayapala’s son Anandapala at Chach in 1008, sacked Nagarkot (Kangra), Thanesar, Mathura and Kannauj, and annexed Lahore and Punjab in 1021.
- In January 1026 he sacked the Somanatha temple in Gujarat and broke its linga. Persian chroniclers wrote of 50,000 dead and vast treasure; historians treat those numbers as boasts, though the violence was real.
- Gujarat’s inscriptions show the temple rebuilt in stone by 1169, and in 1264 a Muslim ship-owner was given land there for a mosque with the temple priest’s backing.
- In 1842 the British carried the ‘gates of Somnath’ from Mahmud’s tomb to India; they were not from Somnath. The temple was rebuilt after 1947; President Rajendra Prasad installed the linga on 11 May 1951 over Nehru’s objection to the state’s role.
- Romila Thapar argues the idea of an unbroken Hindu trauma grew mainly in modern times; critics such as Meenakshi Jain say she plays down the destruction.
At a glance
Jan 1026- Who
- Mahmud of Ghazni, Sultan 998–1030, against the Hindu Shahi kings of Punjab (Jayapala, Anandapala, Trilochanapala) and many north Indian kingdoms
- Punjab battles
- Near Peshawar, 27 November 1001 (Jayapala captured); Chach near Hazro, 31 December 1008 (Anandapala beaten); Nandana, March 1014
- Lahore
- Taken and annexed in 1021; a Ghaznavid city until Muhammad of Ghor took it in 1186
- Somnath
- Left Ghazni 18 October 1025; reached Somnath about 6 January 1026; temple sacked and the linga broken
- The toll
- Never counted. Ibn al-Athir, two centuries later, claimed 50,000 dead; historians treat such figures as boasts
- Rebuilt
- In stone by Kumarapala by 1169; attacked and rebuilt several times; new temple consecrated 11 May 1951, finished 1995
- The gates
- Carried from Mahmud’s tomb in 1842 on Lord Ellenborough’s orders; deodar, made for the tomb; now in Agra Fort
- The debate
- Romila Thapar’s Somanatha (2004) versus critics such as Meenakshi Jain
In this story · 12 parts
- Jan 1026A sea temple, a winter morning
- 998The sultan from Ghazni
- 27 Nov 1001Peshawar, 1001: a king in chains
- 31 Dec 1008Anandapala’s stand, 1008
- Dec 1018Into the plains: Thanesar, Mathura, Kannauj
- 1021Lahore becomes Ghazni’s
- Oct 1025–Jan 1026The march to the sea, 1025–26
- c. 1030–1230What the chroniclers claimed
- 1169–1783The temple that would not stay down
- 1842–1843Gates that were not gates, 1842
- 11 May 1951A promise at Junagadh, 1947–51
- 2004–2026A thousand years of argument
A sea temple, a winter morning
Somnath (Prabhas Patan)
Prabhas Patan, on the coast of Gujarat, January 1026. Waves from the Arabian Sea break against the walls of a temple town. Inside stands the shrine of Somanatha, ‘lord of the moon’, one of the holiest seats of Shiva in India. Pilgrims walk here from across the country. Ships from the Gulf tie up at the port of Veraval next door, loaded with horses.
Outside the walls waits an army that has been marching for nearly three months. It has come from the mountains of Afghanistan, through Multan and across the Thar desert. Its leader is Sultan Mahmud of Ghazni, aged 54.
The fight lasted about three days, by the Persian accounts. When it ended, the defenders were dead or gone. The town was plundered. The linga, the stone emblem of Shiva, was smashed, and pieces were carried back to Ghazni. One piece was laid at the door of the city’s great mosque, where people walked on it. A scholar living in Ghazni, Al-Biruni, wrote that down.
That much nearly everyone agrees on. Almost everything else is still argued over: how many died, why Mahmud came, and how India remembered it. In 1842 a British army carried a pair of carved doors from Mahmud’s tomb back to India as the ‘gates of Somnath’. They were nothing of the kind.
But the story does not begin in Gujarat. It begins in Punjab, 25 years earlier, on a cold plain outside Peshawar.
The sultan from Ghazni
Ghazni
Ghazni is a high, dry town in eastern Afghanistan, on the road between Kabul and Kandahar. In 971 a boy named Mahmud was born there. His father, Sabuktigin, was a Turkic slave soldier who had risen to rule Ghazni for the Samanid kings of Bukhara. In 998, after beating his own brother Ismail in battle, Mahmud took the throne. He was 27.
He wanted more than a frontier town. The Caliph in Baghdad, al-Qadir, sent him a robe of honour and a title, Yamin al-Dawla, ‘right hand of the state’. He spent the wealth of his wars on Ghazni’s mosques, gardens and poets.
East of Ghazni, across the passes, lay the kingdom of the Hindu Shahis. A minister named Kallar had founded this dynasty around 822. At its height it held Kabul. By Mahmud’s time its kings ruled from Udabhandapura, today’s Hund, on the bank of the Indus. Their land ran east into Punjab. Their silver coins, with a horseman on one side and a bull on the other, were used far and wide.
Their king was Jayapala. He had fought Mahmud’s father in the 980s and lost. Now the son was coming.
Who’s who
- Mahmud of Ghazni27 in 998Sultan of Ghazni, 998–1030; led raids into India for about 25 years
- JayapalaHindu Shahi king; beaten and captured near Peshawar in 1001
- AnandapalaHis son and heir; fought Mahmud in 1008, then made peace
- TrilochanapalaNext Shahi king; lost Nandana in 1014; killed by his own troops in 1021
- Bhima IChaulukya king of Gujarat; fled as Mahmud came
- Al-UtbiMahmud’s secretary; wrote the Tarikh-i Yamini, a history in his praise
- Al-BiruniScholar from Khwarazm who lived in Ghazni and wrote a great book on India
Peshawar, 1001: a king in chains
Peshawar On the History of Punjab timeline →
In September 1001 Mahmud reached Peshawar. Jayapala marched to meet him. The chroniclers give the Shahi king 12,000 horsemen, 30,000 foot soldiers and 300 elephants. They give Mahmud 15,000 horsemen, plus volunteers who had come to fight for the faith. Such figures were written by the winner’s side, and should be read that way.
On 27 November 1001 the armies met on the plain near Peshawar. In Al-Utbi’s account, Jayapala’s army broke. The king was taken alive. With him were 15 of his sons and grandsons. Utbi, who wrote for Mahmud, lists the jewelled necklaces stripped from the royal prisoners and gives them fabulous values.
The terms, as the chroniclers give them, were 250,000 dinars and 50 elephants. A son and a grandson stayed behind as hostages until the price was paid. Jayapala was let go. Mahmud rode back to Ghazni in April 1002.
Jayapala did not live long after. The Persian accounts say he could not bear the shame. He had a funeral pyre built and threw himself into the fire. Some modern historians, such as Satish Chandra, doubt parts of the capture story. Nobody doubts the result. Lands west of the Indus were lost to the Shahis for good.
His son Anandapala took the throne. He now faced the choice every Indian king near Mahmud would face: fight him, or pay him.
Anandapala’s stand, 1008
Chach (Hazro)
In 1004–05 Mahmud sacked Bhatiya, a Punjab fort town whose site historians still argue over. In 1006 he turned on Multan.
Multan’s ruler, Abul Fath Daud, was a Muslim. But he was an Ismaili, a Shia sect, and Mahmud, a strict Sunni, called him a heretic. So one of Mahmud’s first big ‘holy wars’ in Punjab was against fellow Muslims. Anandapala tried to block the road and was beaten.
In late 1008 Anandapala gathered a much bigger army. The two sides camped facing each other on the plain of Chach, near Hazro, east of the Indus, for some 40 days. Both sides dug in. The battle came on 31 December 1008.
Firishta, a historian writing around 1600, tells it as a near thing for Mahmud. He says thousands of Gakhars, hill fighters of the Punjab, charged bareheaded and barefoot into the Muslim camp and cut down thousands. He also says Hindu women sold their jewels to pay for the war. He wrote almost 600 years later, so historians use his colour with care. The ending is not in doubt. The Shahi army broke and fled.
Mahmud chased it into the hills, to the fort of Nagarkot, today’s Kangra. The fort and its temple gave up after three days, in 1009. The chroniclers boast of the gold, silver and jewels taken there. Anandapala made peace. He became a tributary, paying yearly and sending soldiers when asked.
Into the plains: Thanesar, Mathura, Kannauj
Kannauj
Now the road east was open. In 1012 Mahmud reached Thanesar, near Kurukshetra, in today’s Haryana. He carried off a bronze image of Vishnu called Chakrasvamin, ‘lord of the discus’. Al-Biruni later wrote that it lay in the hippodrome, the racecourse, at Ghazni.
In March 1014 Mahmud took Nandana, a fort in the Salt Range, from Anandapala’s son Trilochanapala. In 1015 he tried for Kashmir. The mountain fort of Lohkot held out, and snow closed the passes. He tried again in 1021 and failed again. It was one of the few places he could not take.
In December 1018 he reached Mathura, the city of Krishna. Utbi, his secretary, quotes the Sultan’s own letter about its great temple. To build its equal, Mahmud wrote, would cost 100 million red dinars and take 200 years. Utbi says the Sultan then ordered all the temples burnt with naphtha and fire.
On 20 December 1018 he reached Kannauj, the great city on the Ganga. Its king, Rajyapala, fled. Utbi says Kannauj had nearly ten thousand temples. That is a poet’s number, not a count. But the violence was real. Towns were plundered, temples broken and people killed or carried off. Utbi boasts that so many captives were taken that their price fell in the slave markets.
Mahmud utterly ruined the prosperity of the country.Al-Biruni, Kitab al-Hind (about 1030), in Edward Sachau’s translation
That is the verdict of a man who lived at Mahmud’s court.
Lahore becomes Ghazni’s
In 1021 Trilochanapala was killed by his own soldiers. That year Mahmud took Lahore and made Punjab a province of Ghazni. The last Shahi king, Bhimapala, died in 1026. A dynasty that had lasted 200 years was gone.
Al-Biruni wrote its epitaph. Not the slightest remnant of the house was left, he said. Then he praised its kings.
They were men of noble sentiment and noble bearing.Al-Biruni on the Hindu Shahi kings, in Sachau’s translation
Lahore now became a Ghaznavid city, and it stayed one for more than 160 years. When Mahmud’s heirs lost most of Afghanistan, they ruled from Lahore itself. Only in 1186 did Muhammad of Ghor take it from the last of them.
Mahmud’s armies were never just Turks and Afghans. Indian soldiers served in them, Hindus among them. Under his son Mas’ud, a Hindu named Tilak commanded the army in India, the court historian Bayhaqi records.
The Lahore mint tells the same mixed story. It styled Mahmud ‘butshikan’, the idol-breaker. Yet around 1027–28 it also struck silver coins with the Muslim creed in Arabic on one side and a Sanskrit version on the other. The Sanskrit reads roughly: there is one Invisible; Muhammad is the avatar; the king is Mahmud.
A few years after Mahmud died, a young scholar from Ghazni, Ali al-Hujwiri, settled in Lahore. He wrote the first book on Sufism in Persian there. Lahore remembers him as Data Ganj Bakhsh. Out of the conquest came a city of saints as well as soldiers.
The march to the sea, 1025–26
Somnath (Prabhas Patan)
On 18 October 1025 Mahmud left Ghazni again, with about 30,000 horsemen. This time his target was far to the south. By late November he had rested at Multan. Then he struck out across the Thar desert, with thousands of camels carrying water and grain.
He took Lodurva, near today’s Jaisalmer, and came out of the sand at Anhilwara, the capital of Gujarat, at the end of December. Its king, Bhima I, did not stand and fight. He fled to the fort of Kanthkot, in Kutch. Further on, at Modhera, about 20,000 local fighters tried to stop the army and were scattered.
Around 6 January 1026 Mahmud reached Somnath. The Persian accounts, chiefly Ibn al-Athir writing in Iraq two centuries later, describe the scene. The people on the walls, they say, believed their god had drawn the invaders there to destroy them. On the second day, a Friday, the attackers climbed the walls. The defenders fought back from the temple and pushed them out by nightfall. On the third day the walls fell and the fight reached the shrine. Some townspeople ran to boats. Mahmud’s men caught many of them on the water.
Then the temple was stripped of its gold and jewels, and the linga was broken.
Going home was hard. Avoiding armies gathering on his road, Mahmud went back through Kutch and the Sindh desert. An old story told at the Delhi court has a Hindu guide lead the army deep into waterless sand on purpose, to destroy it. Jat bands raided the column along the Indus. The army reached Ghazni in the spring of 1026, much reduced.
In 1027 Mahmud came back to punish the Jats. The historian Gardizi says he had 1,400 boats built, with iron spikes on their bows, and broke the Jat fleet on the river. It was his last campaign in India. Mahmud died in Ghazni on 30 April 1030.
What the chroniclers claimed
Ghazni
Here is a surprise. Utbi, Mahmud’s own secretary, never wrote about Somnath. His history stops around 1020, before the raid. Everything we have from the Persian side comes from other pens, and the further they are from the event, the bigger the story grows.
The first voice is a poet. Farrukhi Sistani was a court poet who wrote a long poem on the campaign. He gave the raid a holy meaning. ‘Somnat’, he claimed, was really ‘Su-Manat’, the idol of Manat. Manat was a goddess of pagan Arabia, whose idol the Prophet’s followers were said to have destroyed. The idol, in this telling, had secretly been carried to India. Mahmud had finished the Prophet’s work. Historians do not believe it. It was a clever way to praise a king.
Gardizi, writing about 1050, calls the idol Manat too. He says it was dug out and broken into small pieces. He also says what the temple meant to Indians.
Hindus regard it with the same respect which the Muslims reserve for Mecca.Gardizi, Zayn al-Akhbar (about 1050), in English translation
Ibn al-Athir gives the famous number: more than 50,000 defenders killed. Later writers put the loot at 20 million dinars, and add wonders, like jewels pouring from the idol’s belly. The Caliph sent Mahmud new titles. For centuries Muslim writers made him the model holy warrior.
The historian Romila Thapar points out that the same round figure, 50,000, appears for the ‘heretics’ Mahmud killed elsewhere. She calls it notional, a number meant to impress. It does not mean few died. It means nobody counted.
The calmest voice is Al-Biruni’s. Soma is the moon, he explains, and natha is lord. He says the fortress round the temple was only about a hundred years old. He even gives the date of the raid as worked out by an Indian astronomer, Durlabha of Multan: Shaka year 947. So Indians knew exactly what had happened. And he says what the wars had done to the people of north India.
The Hindus became like atoms of dust scattered in all directions.Al-Biruni, Kitab al-Hind, in Sachau’s translation
The survivors, he adds, came to hate all Muslims. Al-Biruni was a Muslim himself. Conquest, he was saying, had made enemies.
The temple that would not stay down
Somnath (Prabhas Patan)
Turn to the Indian sources, and the story changes shape. Gujarat’s Sanskrit inscriptions hardly mention Mahmud. They show a temple soon standing again, with pilgrims, priests and money.
A Jain poet, Dhanapala, at the court of the Paramara kings of Malwa, did mention the raid. He boasted that Mahmud had broken Somanatha but could not harm the image of Mahavira at Satyapura, a Jain temple in Rajasthan. Even in grief, the old rivalry between Jains and Shaivas went on.
By the 1160s the Somanatha temple was old and decaying. The Jain scholar Hemachandra says it was a wooden temple. Kumarapala, the Chaulukya king of Gujarat, rebuilt it in stone. An inscription of 1169 credits a Shaiva priest from Kannauj, Bhava Brihaspati, who said Shiva had sent him to restore it. The new temple, it says, was of excellent stone, studded with jewels.
Then comes the inscription that surprises most readers. In 1264 a ship-owner from Hormuz, in the Gulf, named Nuruddin Firuz, was given land in the town of Somanatha to build a mosque. The stone is in Sanskrit and Arabic. Among the local leaders who backed the gift was a Shaiva priest of the temple. The mosque was endowed with land, shops and an oil-mill. Arjunadeva, the Vaghela king of Gujarat, is named in it.
About 240 years after the raid, then, the temple’s own people were helping a Muslim trader build a mosque. In the 1400s another inscription honours a Bohra Muslim, Vohara Farid, who died fighting for the local Hindu ruler in defence of Somanatha. That one opens with ‘bismillah’, in the name of God.
None of this softens what Mahmud did, or what came later. Alauddin Khalji’s army sacked the temple in 1299; a local king rebuilt it. Zafar Khan of Gujarat destroyed it in 1395, Mahmud Begada desecrated it in 1451, and Aurangzeb ordered it destroyed in 1665 and 1706. Around 1783 the Maratha queen Ahilyabai Holkar built a smaller temple nearby, so worship could go on.
By the 19th century the old temple stood broken by the sea. Then a British lord stepped into the story.
Gates that were not gates, 1842
Agra Fort
Afghanistan, autumn 1842. In January a retreating British column from Kabul had been wiped out in the snowy passes. Now British troops had gone back in to punish the Afghans.
The Governor-General in Calcutta, Lord Ellenborough, had an idea. Mahmud’s tomb at Ghazni had a pair of tall carved wooden doors. Legend said they were the sandalwood gates of Somnath, carried off in 1026. Romila Thapar suggests the idea may have come from Lahore. Maharaja Ranjit Singh, by one old account, had once asked the Afghan exile Shah Shuja to hand over the gates as the price of his help. Shuja refused. (Shuja is the king who gave up the Koh-i-Noor at Lahore.)
In September 1842 General William Nott’s army lifted the doors from the tomb. A whole Indian regiment, the 6th Jat Light Infantry, was given the job of carrying them home. That autumn Ellenborough issued a proclamation to the princes and people of India. His general orders of 16 November dealt with the gates.
The insult of eight hundred years is at last avenged.Lord Ellenborough’s proclamation on the gates, 1842
It was meant to win Hindu hearts. It embarrassed nearly everybody instead. The doors turned out to be of deodar, the cedar of the Afghan hills, not sandalwood. Their carving was not Gujarati. They carried an Arabic inscription naming Mahmud. They had been made for his tomb.
In London, the House of Commons debated it on 9 March 1843. Vernon Smith, the member for Northampton, moved that Ellenborough’s conduct had been ‘unwise, indecorous, and reprehensible’. Thomas Babington Macaulay mocked the Governor-General for honouring a temple of Shiva while insulting India’s Muslims.
Morally, this is a crime. Politically, it is a blunder.Thomas Babington Macaulay, House of Commons, 9 March 1843
The motion lost, by 242 votes to 157. But Ellenborough was recalled by the East India Company’s directors in 1844. The gates never went to Somnath. They were put in a store room in Agra Fort, and they are still there.
Thapar makes a sharp point about this debate. It is perhaps the earliest place, she argues, where the raid is spoken of as a wound Hindus had carried for 800 years. She asks whether the British invented that memory, or only gave it a voice.
A promise at Junagadh, 1947–51
Somnath (Prabhas Patan)
13 November 1947. India was three months old. The Nawab of Junagadh, the state that held Somnath, had tried to join Pakistan and had fled. Sardar Vallabhbhai Patel, the Deputy Prime Minister, came to the ruined temple and spoke to the crowd. He called its rebuilding a ‘holy task in which all should participate’. Our story on how the princely states joined India tells how Junagadh got there.
Mahatma Gandhi gave his blessing on one condition. The money should come from the public, not the state. A trust was set up under K.M. Munshi, a Gujarati writer and Congress leader, then a Union minister. Munshi had long made Somnath his cause. In 1937 he had published Jaya Somnath, a novel set at the time of the raid. Mahmud’s destruction, he wrote, had been ‘burnt into the collective sub-conscious’ of the Hindus.
In October 1950 the old ruins were pulled down. A small mosque on the site was moved a few kilometres away. Archaeologists led by B.K. Thapar dug under the old floor and found traces of temples going back to the 10th century or earlier. The architect Prabhashankar Sompura designed the new temple in the old Gujarati style.
Prime Minister Jawaharlal Nehru was uneasy, not about the rebuilding but about the state’s part in it. On 2 March 1951 President Rajendra Prasad told him he had been invited to install the linga. Nehru wrote back the same day.
I confess that I do not like the idea of your associating yourself...Jawaharlal Nehru to Rajendra Prasad, 2 March 1951
Prasad answered that the temple was built entirely from private gifts, and he would go. On 13 March Nehru wrote that he would not press the point. By 22 April he was worried again. The affair, he wrote, was ‘assuming a certain political importance’, even abroad. He told Parliament the government had nothing to do with it. When the Saurashtra state set aside Rs 5 lakh for the ceremonies, he called it ‘completely improper’.
On 11 May 1951 Prasad installed the jyotirlinga. The temple, he said, had been destroyed and rebuilt many times, and every person can reach God by their own faith.
Today, our attempt is not to rectify history.President Rajendra Prasad at Somnath, 11 May 1951
He also said that ‘nothing can destroy the fountains of that faith’. The work went on for decades. The whole temple was finished in 1995, and President Shankar Dayal Sharma dedicated it to the nation on 1 December that year.
Readers’ poll
Was President Rajendra Prasad right to attend the 1951 Somnath ceremony?
Tap an answer to see what other readers think.
A thousand years of argument
Somnath (Prabhas Patan)
In 2004 Romila Thapar, one of India’s best-known historians of early India, published Somanatha: The Many Voices of a History. She did not deny the raid. She set out to read every kind of source side by side: the Persian chronicles, Al-Biruni, Jain stories, Sanskrit inscriptions, the British debate and modern nationalism.
Each source, she argued, used Somanatha for its own ends. Persian writers made Mahmud a hero of Islam. Jain writers used him against Shaivas. Local inscriptions worried more about pirates than about Mahmud. The idea of a single, unbroken Hindu trauma, she argued, grew mainly in the 19th and 20th centuries. She also suggested Mahmud may have had a trade motive, to break the horse trade that ran through Sindh and Gujarat.
Her critics answer hard. Meenakshi Jain criticised the book when it came out and has since written her own books on Somnath and on temple destruction. Her supporters say Thapar shrinks a long story of repeated destruction into something almost routine. The fact that Hindus rebuilt again and again, critics say, is itself the memory. Silence in a land grant is not proof that nobody grieved.
Mohammad Habib, writing in 1927, had said Mahmud was driven by ‘love of plunder’, not faith. In Pakistan, Mahmud is a hero. In India, especially in Hindutva politics, he is a villain.
Both sides, and a third
What Romila Thapar and like-minded historians say
- The raid happened and was brutal; the question is how it was remembered.
- Gujarat’s own inscriptions show a temple rebuilt and a town that soon traded with Muslims.
- The ‘800-year wound’ idea was shaped by the 1843 Commons debate and later nationalism.
What her critics say
- Meenakshi Jain and her supporters say Thapar plays down repeated destruction of a holy shrine.
- Rebuilding the temple again and again shows how deeply the attacks were felt.
- Mahmud’s own court writers said plainly that he came to break idols.
- Calling the chronicles boasts lets the raiders off lightly.
What Mahmud’s admirers said, then and now
- Utbi, Farrukhi and Gardizi praised him as a warrior for Islam.
- In Pakistan he is a national hero; a missile bears his name.
Readers’ poll
What mainly drove Mahmud’s raids into India?
Tap an answer to see what other readers think.
Fifty thousand people died defending Somnath.
Why people believed it
The figure is in Ibn al-Athir and is repeated in many books.
What the record shows
Ibn al-Athir wrote about two centuries later. The same round number appears for other massacres. Al-Biruni, who lived at the time, gives no number.
UnprovenMany died; nobody counted. 50,000 is a chronicler’s figure, not a record.
The ‘gates of Somnath’ brought back in 1842 came from the temple.
Why people believed it
A legend at Ghazni said Mahmud had carried them off; Ellenborough believed it.
What the record shows
They are deodar, carved in an Afghan style, with an Arabic inscription naming Mahmud. They were made for his tomb.
BustedFalse. They sit in Agra Fort to this day.
Somnath lay in ruins from 1026 until 1951.
Why people believed it
The 1951 rebuilding is often told as the first since Mahmud.
What the record shows
Kumarapala rebuilt it in stone by 1169; it was attacked and rebuilt several times after; Ahilyabai Holkar built a temple nearby around 1783.
BustedFalse. Worship went on for most of those centuries.
Nehru opposed rebuilding Somnath.
Why people believed it
Politicians have said so, and his letters show he was unhappy.
What the record shows
His 1951 letters object to the President’s part and to state money, not to the temple itself.
Still openHalf true: he opposed the state’s role, not the rebuilding.
In January 2026, a thousand years after the raid, Somnath held the Somnath Swabhiman Parv, a festival of pride. Prime Minister Narendra Modi spoke there on 11 January.
Somnath was not attacked just once, but several times.Prime Minister Narendra Modi at Somnath, 11 January 2026
He said ‘the history of hatred and cruelty was hidden from us’, and attacked those who had kept their distance from Somnath after independence. Reports read this as a reference to Nehru’s years in power. Congress leaders have replied that Nehru had opposed only the state’s role, not the temple.
Readers’ poll
Should the ‘gates of Somnath’ in Agra Fort go on public display?
Tap an answer to see what other readers think.
The temple stands by the sea again. In a store room at Agra lie two cedar doors that were never Somnath’s. The raid was real, and so was the pain. So was the rebuilding. And so were the Hindu priest and the Muslim sailor whose names share one stone in the temple town.
Test yourself
7 questions on this story
-
Where did Mahmud defeat and capture the Hindu Shahi king Jayapala in 1001?
The battle was fought near Peshawar on 27 November 1001. Jayapala was taken with 15 of his sons and grandsons.
-
Why did Mahmud attack Multan in 1006?
Abul Fath Daud of Multan was an Ismaili Muslim. Mahmud, a strict Sunni, treated him as a heretic.
-
Which court scholar wrote that Mahmud ‘utterly ruined the prosperity of the country’?
Al-Biruni lived at Mahmud’s court and wrote his great book on India around 1030.
-
What did the poet Farrukhi claim the Somnath idol really was?
He read ‘Somnat’ as ‘Su-Manat’. Historians treat it as flattery, not fact.
-
What did the 1264 Veraval inscription record?
Nuruddin Firuz of Hormuz got land for a mosque, with a Shaiva priest of the temple among its backers.
-
What were the 1842 ‘gates of Somnath’ actually made of?
They were deodar, the cedar of the Afghan hills, and were made for Mahmud’s tomb.
-
Who installed the linga in the rebuilt Somnath temple on 11 May 1951?
Prasad went despite Nehru’s objection to the state’s role. Patel had died in December 1950.
Play: which came first?
Two moments from this story. Tap the one that happened first.
Questions people ask
When did Mahmud of Ghazni attack Somnath?
He reached Somnath in early January 1026, about 6 January by most modern reckonings, after leaving Ghazni on 18 October 1025. The temple fell after about three days of fighting.
How many times did Mahmud of Ghazni invade India?
The common figure is 17, but it is a later count. Historians tally his campaigns differently, depending on what they count as one raid. He campaigned in India from 1001 to 1027.
Who was Jayapala?
Jayapala was king of the Hindu Shahis, who ruled from Udabhandapura (Hund) on the Indus and held lands in Punjab. Mahmud defeated and captured him near Peshawar on 27 November 1001. The Persian accounts say he later burned himself on a pyre out of shame.
Was the Somnath temple rebuilt after Mahmud?
Yes. It was in worship again within decades. The Chaulukya king Kumarapala rebuilt it in stone by 1169. It was attacked and rebuilt several more times, and the present temple was built after 1947. Its linga was installed on 11 May 1951.
What are the gates of Somnath?
They are carved deodar doors that the British took from Mahmud’s tomb at Ghazni in 1842, believing a legend that they came from Somnath. They have an Arabic inscription naming Mahmud and were made for the tomb. They are kept in Agra Fort.
What did Al-Biruni say about Mahmud?
Al-Biruni, a scholar at Mahmud’s court, wrote that Mahmud ‘utterly ruined the prosperity of the country’ and left Hindus ‘like atoms of dust scattered in all directions’. He also described the breaking of the Somnath linga and the pieces taken to Ghazni.
Did Nehru oppose the rebuilding of Somnath?
His letters of 1951 show he objected to President Rajendra Prasad taking part and to state money for the ceremony, not to the rebuilding itself, which was paid for by public donations.
How we wrote this. Researched from the Persian chronicles in Elliot and Dowson’s translation, Al-Biruni in Edward Sachau’s translation, Romila Thapar’s writing on Somanatha and the replies of her critics, the 1843 Commons debate, the Nehru–Prasad letters, and the other books and reports listed below. Written in our own words by the TrendingPunjabi desk with the help of an AI model. Mahmud’s chroniclers wrote to praise him, and some wrote centuries later; their numbers for armies, dead and treasure are boasts, and we say so. Sources disagree on the dates of several campaigns (Thanesar is put at 1012 or 1014), on the exact day Somnath fell, on the site of Bhatiya, on how far later details from Firishta can be trusted, and on how the raid was remembered in India. Quotations are from the English translations named. Polls are readers’ opinions, not findings.
Sources
- Trübner / Internet Archive: The History of India as Told by Its Own Historians, Vol. II, ed. H.M. Elliot and John Dowson (extracts from Al-Utbi’s Tarikh-i Yamini, Ibn al-Athir, Muhammad Aufi and Minhaj-i-Siraj)
- Wikiquote: Al-Biruni, Kitab al-Hind, in Edward Sachau’s translation (Alberuni’s India): quotations
- Wikiquote: Mahmud of Ghazni: quotations from Gardizi, Utbi and others
- Australian National University: The Last Two Dynasties of the Sahis, by Abdur Rehman (PhD thesis, 1976), quoting Al-Biruni on the Shahis
- Frontline / Columbia University archive: Somanatha and Mahmud, by Romila Thapar (Frontline, 1999)
- Verso: Somanatha: The Many Voices of a History, by Romila Thapar
- Dawn: Reviews: Many voices (review of Thapar’s Somanatha)
- Swarajya: Meenakshi Jain’s answer to Romila Thapar on Somnath (review of Invincible Somnath)
- Hansard: Lord Ellenborough’s proclamation: Somnauth, House of Commons debate, 9 March 1843
- Columbia University archive: The Gates of Somnauth, speech by Thomas Babington Macaulay, 9 March 1843
- Victoria and Albert Museum: The Somnath Gates, Fort Agra, by William Simpson (1866), with catalogue notes
- National Herald: Insight: Nehru’s misgivings on Somnath temple shared with Dr Rajendra Prasad
- ThePrint: Rajendra Prasad’s Somnath temple inauguration speech, 1951
- The Week: Ram mandir’s ‘precursor’: how a Nehru government minister helped rebuild Somnath temple
- Free Press Journal: ‘Some tried to whitewash religiously motivated attacks’, says PM Modi at Somnath, 11 January 2026
- Wikipedia: Mahmud of Ghazni (citing C.E. Bosworth, Muhammad Nazim, Mohammad Habib, Bayhaqi and others)
- Wikipedia: Somnath temple (citing Romila Thapar, Cynthia Talbot, B.K. Thapar’s excavation and others)
- Wikipedia: Sack of Somnath
- Wikipedia: Hindu Shahis
- Wikipedia: Battle of Peshawar (1001) (citing Al-Utbi, Satish Chandra)
- Wikipedia: Battle of Chach
- Wikipedia: The Proclamation of the Gates
PromotedGTA 5 FULL GAME WALKTHROUGH PART 2 🔥 | Epic Missions & Gameplay | Gsran GameGsran gameWatchPaid placement · Promote your video
All history · People in history · History of the Sikhs · History of Punjab · History of India