It was given to Ahmad Shah Durrani by Murad Beg of Bukhara after a treaty was signed in or about 1750, and became part of the Durrani Empire. It was ruled by the Durranis followed by the Barakzai dynasty. The area was untouched by the British during the three Anglo-Afghan wars that were fought in the 19th and 20th centuries.