Ahmad Shah and his descendants were from the Sadozai subclan of Popalzai line of the Durranis (formerly known as Abdalis), making them the second Pashtun rulers of Kandahar after the Hotak dynasty.
[6] In July 1747, when the chiefs of the Afghans met at a loya jirga (grand council) in Kandahar to select a new ruler for the Abdali confederation, the young 25-year-old Ahmad Khan was chosen.
Ahmad Shah began his campaign by capturing Ghazni from the Ghilji Pashtuns, and wresting Kabul and Peshawar from Mughal-appointed governor Nasir Khan, conquering the area up to the Indus River in 1747.
In 1749, the Mughal ruler was induced to cede Sindh, the Punjab region and the important trans Indus River to Ahmad Shah in order to save his capital from Afghan attack.
In short order, the powerful army brought under its control the Turkmen, Uzbek, Tajik and Hazara tribes of northern Afghanistan.
Ahmad Shah invaded the remnants of the Mughal Empire a third time, and then a fourth, consolidating control over the Punjab and Kashmir regions.
Then, early in 1757, he sacked Delhi, but permitted the Mughal dynasty to remain in nominal control of the city as long as the ruler acknowledged Ahmad Shah's suzerainty over Punjab, Sindh, and Kashmir.
[9] However, with his campaigns in India exhausting the state treasury, and with his troops stretched thin throughout Central Asia, Ahmad Shah lacked sufficient resources to do anything except to send envoys to Beijing for unsuccessful talks.
He defeated the Rohillas and Afghan garrisons in Punjab and succeeded in ousting Timur Shah and his court from India and brought Lahore, Multan, Kashmir and other subahs on the Indian side of Attock under Maratha rule.
He assaulted Lahore and, after taking their holy city of Amritsar, massacred thousands of Sikh inhabitants, destroying their revered Golden Temple.
Ahmad Shah also faced other rebellions in the north, and eventually he and the Uzbek Emir of Bukhara agreed that the Amu Darya would mark the division of their lands.
"[4][16] By the time of Ahmad Shah's ascendancy, the Pashtuns included many groups whose origins were obscure; most were believed to have descended from ancient Aryan tribes.
Painda Khan's son fled to Iran and pledged the substantial support of his Barakzai followers to a rival claimant to the throne, Zaman's older brother, Mahmud Shah.