Between the early 16th century and mid-18th century, the area was ruled by the Khanate of Bukhara. It was conquered by Ahmad Shah Durrani and became part of the Durrani Empire in or about 1750, which formed to the modern state of Afghanistan. The area was untouched by the British during the three Anglo-Afghan wars that were fought in the 19th and 20th centuries.