About two centuries afterwards, in the course of the struggle between the Sikhs and the Mahommedans, Ahmad Shah Durani routed the Sikhs at the great battle of Panipat, and on his homeward march he destroyed the town of Amritsar, blew up the temple with gunpowder, filled in the sacred tank with mud, and defiled the holy place by the slaughter of cows.
But when Ahmad Shah returned to Kabul the Sikhs rose once more and re-established their religion.
In return they all received provinces: NO obtained Samarkand; Ahmad, Ferghana; Yahya, Shash; Ilyas, Herat.
Of these Ahmad and his second son Isma`il overthrew the Saffarids (q.v.) and the Zaidites of Tabaristan; and thus the Samanids established themselves with the sanction of the caliph Motamid in their capital Bokhara.