Thirty elephants, with much rich plunder, were brought to the King, who, to establish the faith, marched against the Hindus of Nagrakot, breaking down their idols and destroying their temples. There was at that time, in the territory of Nagrakot, a strong fort called Bima, which Mahmud invested after having destroyed the country round about with fire and sword. Bima was built by a prince of the same name, on the top of a steep mountain; and here the Hindus—on account of its strength—had deposited the wealth consecrated to their idols in all the neighboring kingdoms; so that in this fort, it was said, there was a greater quantity of gold, silver, precious stones, and pearls than ever had been collected in the royal treasury of any prince on earth.

Mahmud invested the place with such expedition that the Hindus had not time to send troops into it for its defence—the greater part of the garrison having been sent to the field. Those within consisted, for the most part, of priests, who being adverse to the bloody business of war, in a few days solicited permission to capitulate. Their request being granted, they opened the gates and fell upon their faces before Mahmud, who with a few of his officers and attendants immediately entered and took possession of the place.

In Bima were found: seven hundred thousand dinars; seven hundred maunds of gold and silver plate; forty maunds of pure gold in ingots; two thousand maunds of silver bullion, and twenty maunds of various jewels set, which had been collecting from the time of Bima. With this immense treasure the King returned to Ghazni, and in the year A.H. 400 held a magnificent festival, where he displayed to the people his wealth in golden thrones, and in other rich receptacles, in a great plain without the city of Ghazni; and after the feast every individual received a princely gift.

In the following year Mahmud led his army toward Ghor. The native prince of that country, Mahomet of the Sur tribe of Afghans, with ten thousand troops, opposed him. The King, finding that the troops of Ghor defended themselves in their intrenchments with such obstinacy, commanded his army to make a feint of retreating, to lure the enemy out of their fortified camp, which manoeuvre proved successful. The Ghorians, being deceived, pursued the army of Ghazni to the plain, where the King, facing round with his troops, attacked them with great impetuosity. Mahomet was taken prisoner and brought to the King; but in his despair he had taken poison, which he always kept under his ring, and died in a few hours. His country was annexed to the dominion of Ghazni. Some historians affirm that neither the sovereigns of Ghor nor its inhabitants were Mussulmans till after this victory; while others of good credit assure us that they were converted many years before, even so early as the time of the famous Ali, the son-in-law of the Prophet.

Mahmud, in the same year, was under the necessity of marching again to Multan, which had revolted; but having soon reduced it, and cut off a great number of the chiefs, he brought Daud, the son of Nazir, the rebellious governor, prisoner to Ghazni, and imprisoned him in the fort of Gorci for life.

In the year A.H. 402, the passion of war fermenting in the mind of Mahmud, he resolved upon the conquest of Tannasar, in the kingdom of Hindustan. It had reached the ears of the King that Tannasar was held in the same veneration by idolaters as Mecca was by the Mahometans; that there they had set up a great number of idols, the chief of which they called Jug Sum. This Jug Sum, they pretended to say, existed when as yet the world existed not. When the King reached the country about the five branches of the Indus, he desired that—according to the treaty that existed between himself and Annandpal—he should not be disturbed by his march through that country. He accordingly sent an embassy to Annandpal, advising him of his intentions, and desiring him to send guards for the protection of his towns and villages, which he, the King, would take care should not be molested by the followers of his camp.

Annandpal agreed to this proposal, and prepared an entertainment for the reception of the King, issuing an order for all his subjects to supply the royal camp with every necessary of life. In the mean time he sent his brother with two thousand horse to meet the King and deliver this message:

"That he was the subject and slave of the King; but that he begged permission to acquaint his Majesty that Tannasar was the principal place of worship of the inhabitants of that country; that if it was a virtue required by the religion of Mahmud to destroy the religion of others, he had already acquitted himself of that duty to his God in the destruction of the temple of Nagracot; but if he should be pleased to alter his resolution against Tannasar, Annandpal would undertake that the amount of the revenues of that country should be annually paid to Mahmud, to reimburse the expense of his expedition: that besides, he, on his own part, would present him with fifty elephants, and jewels to a considerable amount."

The King replied: "That in the Mahometan religion it was an established tenet that the more the glory of the Prophet was exalted, and the more his followers exerted themselves in the subversion of idolatry, the greater would be their reward in heaven; that therefore it was his firm resolution, with the assistance of God, to root out the abominable worship of idols from the land of India: why then should he spare Tannasar?"

When this news reached the Indian king of Delhi, he prepared to oppose the invaders, sending messages all over Hindustan to acquaint the rajahs that Mahmud, without any reason or provocation, was marching with an innumerable army to destroy Tannasar, which was under his immediate protection: that if a dam was not expeditiously raised against this roaring torrent, the country of Hindustan would soon be overwhelmed in ruin, and the tree of prosperity rooted up; that therefore it was advisable for them to join their forces at Tannasar, to oppose with united strength the impending danger. But Mahmud reached Tannasar before they could take any measure for its defence, plundered the city and broke the idols, sending Jug Sum to Ghazni, where he was soon stripped of his ornaments. He then ordered his head to be struck off and his body to be thrown on the highway. According to the account of the historian Hago Mahomet of Kandahar, there was a ruby found in one of the temples which weighed four hundred and fifty miskals!