# Ahmad Shah Durrani

* This article is part of a series aboutAhmad Shah Durrani
Rise to power
Early life
Rise to power
First Indian campaign
Indian campaigns (1747—1767)
First invasion of India (1747—1748)
Lahore (1748)
Manupur (1748)
Second invasion of India (1748)
Third invasion of India (1751—1752)
Lahore (1752)
Fourth invasion of India (1756—1757)
Delhi (1757)
Ballabhgarh (1757)
Gokul (1757)
Fifth invasion of India (1759—1761)
Taraori (1759)
Barari Ghat (1760)
Sikandarabad (1760)
Aligarh (1760)
Kunjpura (1760)
Samalkha (1760)
Meerut (1760)
Panipat (1761)
Sixth invasion of India (1762—1763)
Kup (1762)
Pipli Sahib (1762)
Ravi (1762)
Seventh invasion of India (1764—1765)
Qarawal (1764)
Darbar Sahib (1764)
Sutlej (1765)
Eighth invasion of India (1766—1767)
Khorasan campaigns (1750—1770)
First Durrani campaign (1749—1751)
Herat (1749—1750)
Mashhad (1750)
Nishapur (1750—1751)
Second Durrani campaign (1754–55)
Tabas (1754)
Mashhad (1754)
Nishapur (1755)
Third Durrani campaign (1770)
Legacy
Burial place
Durrani dynasty
Tarikh-i Ahmad Shahi :
vte :
Ahmad Shāh Durrānī (Pashto: احمد شاه دراني; Persian: احمد شاه درانی), also known as Ahmad Shāh Abdālī (Pashto: احمد شاه ابدالي), was the first ruler and founder of the Durrani Empire. He is often regarded as the founder of modern Afghanistan.
Throughout his reign, Ahmad Shah fought over fifteen major military campaigns. Nine of them being centered in India, three in Khorasan, and three in Afghan Turkestan. Having rarely lost a battle, historians widely recognize Ahmad Shah as a brilliant military leader and tactician, typically being compared to rulers such as Mahmud of Ghazni, Babur, and as well as Nader Shah. Historian Hari Ram Gupta refers to Ahmad Shah as the "greatest general of Asia of his time", as well as one of the greatest conquerors in Asian history.

## Name and title

His birth name was Ahmad Khan, born into the Abdali tribe. After his accession to power in 1747, he became known as Ahmad Shah. His tribe also changed the name from Abdali, instead becoming the Durrani. Afghans often call him Ahmad Shāh Bābā, meaning "Ahmad Shah the Father".
In historical sources, his tribes name is interchangeably used between Abdali and Durrani, with other common names for him being Ahmad Shah Abdali.

## Early life

Ahmad Shah was born between 1720 and 1722 in either Herat, Afghanistan, or Multan, Pakistan. Sources are disputed on where he was born. Modern scholarship came to the consensus that Ahmad Shah was born in Multan, but this is disputed by Nejatie, who states that the majority of sources from Ahmad Shah's time state that he was born in Herat, rather than Multan, including the Tarikh-i Ahmad Shahi, a primary source commissioned by Ahmad Shah.
His father, Zaman Khan, was the emir of Herat. Zaman Khan had died in 1721, leading to Ahmad Shah being raised alongside his brother Zulfiqar Khan in Shindand and Farah. In the mid-1720s, Zulfiqar Khan was invited to rule Herat. Nothing else is heard of Ahmad Shah until 1731–1732, when Zulfiqar Khan was defeated by Nader Shah, forcing both Zulfiqar Khan and Ahmad Shah to flee to Kandahar, where they remained political prisoners of Hussain Hotak.
After Nader Shah conquered Kandahar, Ahmad Shah and Zulfiqar Khan were freed. Ahmad Shah spent much of his early life in the service of Nader Shah. Accompanying him on his invasion of India, Ahmad Shah was later resettled in Mazandaran alongside his brother. Iranica states that Ahmad Shah may have become the governor of Mazandaran. After the death of his brother, Ahmad Shah enlisted in the Afsharid military in 1742. Some sources suggest that it was only Zulfiqar Khan that left for Mazandaran, while Ahmad Shah remained in Nader Shah's service as an officer.
During Nader Shah's invasion of India, Ahmad Shah personally commanded a regiment of Durrani tribesmen. Ahmad Shah's forces committed massacres and sacked Delhi alongside Nader Shah's forces in 1739. According to legend, Nizam ul-Mulk, the Mughal governor of Hyderabad, who was an expert in physiognomy, predicted that Ahmad Shah would become king. Nader Shah took notice of this and also believed in the prophecy, supposedly clipping a piece of Ahmad Shah's ears, and remarking "When you become a king, this will remind you of me". Nader Shah also requested that Ahmad Shah be generous with his descendants. Nejatie is skeptical of the account.
In 1744, Ahmad Shah was promoted to a personal staff of Nader Shah. In a campaign against the Ottomans, Ahmad Shah distinguished himself and was allowed to raise a contingent of 3–4,000 Durrani tribesmen by Nader Shah. Ahmad Shah's contingent became one of Nader Shah's most trusted, utilizing them to shatter the power of his other commanders due to his perception that they were planning to rebel or kill him.

### Death of Nader Shah

In June 1747, Nader Shah was convinced that his personal guard intended to assassinate him. As a result, he summoned Ahmad Shah and other loyal commanders. Nader Shah ordered Ahmad Shah to assemble his Durrani regiments, and to arrest his personal guard. If the personal guard resisted, Ahmad Shah was given permission to kill them all. He was ordered to do this at first light. Nader Shah then chose to sleep with his favorite wife, but did so outside the royal tent, where the same guards he accused of treachery presumed night duty, while Ahmad Shah with his regiments were established at the defenses of the camp.
News of Nader Shah's plan leaked, with the conspirators being forced to act. Four conspirators entered the royal enclosure and entered Nader Shah's tent, assassinating him. Chaos ensued following the assassination, and plans to coverup by the conspirators failed. They resorted to pillaging the royal enclosure while news of Nader Shah's death rapidly spread. The next morning, the royal guard attacked Ahmad Shah's forces, who despite being heavily outnumbered, drove the Persians and Qizilbash off. Ahmad Shah then entered the tent of Nader Shah, taking the Koh-i-Noor diamond and a signet ring from his body.

## Return to Kandahar

Having driven off the Persians and Qizilbash, Ahmad Shah departed for Kandahar with his regiments, and his Uzbek ally, Hajji Bi Ming. Ahmad Shah first settled the dispute of leadership, asserting himself as the leader of Durrani tribesmen by forcing the former leader to step down. Ahmad Shah also killed 'Abd al-Ghani Khan, his uncle and the governor of Kandahar to secure complete power over the Durrani regiments. With the dispute over leadership concluded, Ahmad Shah's forces grew to 6,000 Afghans.
Following this, Ahmad Shah moved through Khabushan, advancing to Kashmar. While on-route, Ahmad Shah accumulated supplies for his army and proceeded toward Torbat-e Heydarieh, where they received news that Adel Shah had sent a force to halt the Afghans. As a result, Ahmad Shah led his forces to Tun and then Farah, where they defeated an army sent by Adel Shah. With Farah under his control, the Afghans proceeded to Grishk, and then Kandahar.
While on-route to Kandahar, Ahmad Shah recovered a military convoy that contained the annual tribute from Sindh. The value of the treasure is disputed, but it's given within an estimate of 3,000,000–260,000,000 rupees. The convoy was escorted by Mohammad Taqi Khan Shirazi, a disgruntled former officer of Nader Shah, and Nasir Khan, the governor of Kabul and Peshawar. Taqi Khan joined Ahmad Shah and divided the wealth, while Nasir Khan refused and was imprisoned. Later, he was ransomed on the conditions of an annual tribute of 500,000 rupees, and that he would enter Ahmad Shah's suzerainty. The army of Ahmad Shah grew to over 18,000 men, also including war elephants.

### Accession and coronation

Upon reaching Kandahar, Ahmad Shah established camp in Naderabad and prepared to be crowned as King. According to legend, Ahmad Shah declared a Jirga, summoning all tribal leaders who unanimously selected Ahmad Shah as king. A piece of wheat or barley was then placed on Ahmad Shah's turban. Singh cites this account, despite there being no contemporary evidence to suggest this occurred.
In reality, Ahmad Shah was brought to power through a nine-man military council. Ahmad Shah's accession was further disputed by Jamal Khan, the leader of the Barakzai tribe. The Barakzai were the most powerful clan of the Durranis centered in the Kandahar and Helmand regions. The dispute over accession continued until an agreement was made where Jamal Khan would submit to Ahmad Shah as king, while Ahmad Shah would make Jamal Khan and his descendants Wazir. With an agreement reached, Sabir Shah, Ahmad Shah's advisor, took a piece of greenery or stalk and attached it to Ahmad Shah's cap, officially crowning him. Scholars state that Ahmad Shah's rise to power was effectively a military coup, rather than an election.
Following his accession, Ahmad Shah adopted the epithet "Durr-i Durrān", meaning "Pearl of Pearls", also changing the name of his tribe from Abdali to Durrani.

## Reign as Shah (1747–1772)
### Administration

At the beginning of his rule, Ahmad Shah's empire consisted of Kandahar, Helmand, and Farah. The Hazaras of Bala Murghab and the Khanate of Kalat ruled by Nasir Khan also rested under Afghan suzerainty.
However, Ahmad Shah had no administrative experience, nor did much of his closest advisors. As a result, he chose to adopt a government style similar to the Mughals and Safavids, with his main idea of a government based on an absolute monarchy. A tribal council ruled in hand with Ahmad Shah as well, serving as a form of cabinet. However, Ahmad Shah had made the positions of his cabinet hereditary, thus making it difficult to dismiss advisors without causing conflict. Their roles, however, were mostly purely de-jure, and tasks were delegated to subordinates.
The civil service of the empire was dominated by the Qizilbash, as most of the Durrani elite were illiterate. The Qizilbash also significantly formed the major part of Ahmad Shah's bodyguard, counterbalancing other Durrani leaders and tribes. The complications and effectively divided government made the administration difficult to function, and caused ethnic tension between the Qizilbash and tribal council of Ahmad Shah.
Further complications erupted in Ahmad Shah's administration over exempting his own tribe from taxation. Other Afghan tribes and ethnicities were discontent from such, as they were also devoid of being allowed to serve in the administration of the empire. This was further exasperated by Ahmad Shah when he gave the right of revenue collection to the highest bidder. The victors of these auctions, typically members of Ahmad Shah's own tribe, were completely free in taxing as much as they wished. While members of the Durrani tribe rapidly became rich, some landholders were forced into complete debt, forcing many to sell their lands or flee the kingdom, likely being bought up by the Durranis who had driven them to bankruptcy.
Ahmad Shah envisioned himself as the successor of Nader Shah. Instead of establishing a capable administration, Ahmad Shah focused on wars and military campaigns to supply his treasury, with any downturns easily being covered by the treasures of war. Throughout his reign, he rarely spent his time in Kandahar, the capital of his empire, and instead pursued military campaigns, returning only to restore stability after conflict. By the end of his reign, Ahmad Shah committed to over fifteen military campaigns, Nine of them being centered in India, three in Khorasan, and three in Afghan Turkestan.

### Objectives

Afghanistan was a relatively poor country. As a result, Ahmad Shah, following in the footsteps of conquerors before him such as Mahmud of Ghazni, and invaded India to plunder and obtain wealth. Relating as well from Muhammad of Ghor, Ahmad Shah invaded India to also establish his own political dominance, as the power vacuum following the decline of the Mughal Empire allowed him to repeat extensive campaigns, while also reviving the prominence of Afghans in India. Furthermore, by institutionalizing the casus belli of holy war, Ahmad Shah was able to direct the majority of his campaigns toward India.
Moreover, Ahmad Shah saw invasions as the proper way to propagate his strength. The Afghan chiefs and nobility initially saw him as an upstart, and as a result, Ahmad Shah sought victories to legitimize himself and to bring the nobility under him.

## Military campaigns
### Campaign to Kabul (1747)

Weeks after Ahmad Shah's accession, Nasir Khan, the governor of Kabul, Ghazni, and Peshawar revolted against him. Ahmad Shah previously imprisoned Nasir Khan and ransomed him for an annual tribute of 500,000 rupees, and while Nasir Khan was attempting to raise this amount, the Ghilzai tribes refused to pay their taxes toward the Durranis, and only wished to do so to their Mughal sovereign, Muhammad Shah. With a growing Ghilzai revolt, Nasir Khan declared his independence from Durrani suzerainty and began raising an army of Uzbeks and Hazaras, while also frantically asking Muhammad Shah for aid.
In Autumn of 1747, Ahmad Shah began his campaign against Nasir Khan. Appointing his nephew Luqman Khan as the regent in Kandahar while he left on campaign, Ahmad Shah marched his army toward Ghazni only to be halted at Qalati Ghilji by his former allies, the Tokhi Ghilzai. Ahmad Shah stormed the fortress of Qalat, bringing the Tokhis to submission and annexing their lands over the following decades. Ahmad Shah continued to Ghazni, defeating the governor established there and conquering it with little opposition.
Before advancing on Kabul, Ahmad Shah garnered the support of the Suleimankhel tribes in the region, while Taqi Khan managed to procure the defection of the Qizilbash garrison in Kabul, so that once the Afghan army would arrive, they'd hand over the city. The acceptance of these terms forced Nasir Khan to flee to Peshawar, and when Ahmad Shah arrived at Kabul in October 1747, the Qizilbash handed over the Bala Hissar fortress. Ahmad Shah awarded the Qizilbash by giving them districts in Chindawol and Murad Khani.

### First invasion of India (1747–1748)

With Kabul under his control, Ahmad Shah dispatched his Commander-in-chief, Jahan Khan, toward Peshawar with the intention of advancing as far as Attock. Jahan Khan quickly overran Jalalabad, and Nasir Khan was unable mount a defense at the Khyber Pass, forcing him to flee. The Afghan armies approached Peshawar, prompting many Pashtun tribes to declare for them, such as the Yusufzai, Afridi, and Khattak. With Nasir Khan overwhelmed, he completely withdrew from Peshawar and fled to Delhi.
Shah Nawaz Khan, the Mughal governor of the Punjab, opened correspondence with the Afghans after they had seized Peshawar. Shah Nawaz, having toppled his brother from power to assume control over the Punjab itself, was opposed by the Mughal emperor Muhammad Shah, who refused to recognize him as governor. As a result, the Afghans promised Shah Nawaz the position of governor of the Punjab if he accepted Durrani suzerainty. Shah Nawaz accepted this before the Mughal vizier promised to confirm him as governor if he opposed the Afghan invasion instead, which Shah Nawaz accepted.
The betrayal saw Ahmad Shah dispatch Sabir Shah to try and convince Shah Nawaz once again. However, after insulting Shah Nawaz, Sabir Shah was imprisoned and executed, and Shah Nawaz began marching against the Afghan army. Ahmad Shah crossed the Ravi River on 10 January, and established himself at the Shalimar Gardens, outside of Lahore. The armies of Shah Nawaz and Ahmad Shah began battle on 11 January, and as the battle began, the Afghan regiments of Shah Nawaz's army defected. Despite commanding a much larger army then the Afghans, the Mughals were utterly defeated, and Shah Nawaz fled to Delhi.
With their victory, the Afghans entered Lahore, plundering and massacring the city. Thousands were also conscripted, while the Mughals began mobilizing a larger army. Ahmad Shah left Lahore on 19 February with his forces, beginning to advance on Delhi. The Afghans captured Sirhind and pressed the advance, outmaneuvering Mughal forces until they were caught at Manupur, where they battled. The Afghan army pressed the attack until a catastrophe occurred in the form that the ammunition stores of the Afghan army caught fire and exploded, incinerating 1,000 men, and forcing a complete withdrawal from the battlefield. The Mughals did not pursue the Afghan army due to the death of Mughal emperor Muhammad Shah, and turmoil in the camp.
Withdrawing to Lahore, Ahmad Shah became aware that his nephew, Luqman Khan, who had been left as regent in Kandahar, had revolted. Ahmad Shah immediately returned to Afghanistan, and marched on Kandahar, quickly quelling the revolt. He spent the summer of 1748 preparing for his second invasion of India. The timing was significant for Ahmad Shah, as Qamar-ud-Din, a significant commander for the Mughals at Manupur, had been killed, while the Mughal emperor Muhammad Shah's death saw him succeeded by Bahadur Shah, who largely focused on pleasure-seeking. Ahmad Shah also wished to avenge his defeat.

### Second invasion of India (1748)

In November 1748, Ahmad Shah began his second invasion of India. Moin-ul-Mulk, the new governor of the Punjab, urgently requested reinforcement from the Mughals in Delhi. Moin-ul-Mulk, wishing to not fight the Afghans on open plains, remained on the defensive at Sodhra, as an on-going power struggle with the Mughal ex-governor of Kabul, Nasir Khan, threatened his position. As a result, Jahan Khan was able to raid the countryside, including the Chaj Doab, while a party of Sikhs raided Lahore.
Ahmad Shah advanced to Kopra, and engaged in skirmishes with Moin-ul-Mulk's army. Overwhelmed with the rising power of the Sikhs and the Afghan invasion, Moin-ul-Mulk opened negotiation, ceding the revenues of Gujrat, Aurangabad, Sialkot, and Pasrur, which all amounted to revenues worth 1.4 million rupees yearly. Ahmad Shah returned to Afghanistan following the treaty, crossing through Peshawar, Dera Ismail Khan, and Dera Ghazi Khan. The regions of Dera Ismail Khan and Dera Ghazi Khan fell as he returned to Afghanistan, confirming the former tribal chiefs as governors in the region under his suzerainty.

### First Khorasan campaign (1749–1751)

Between 1749 and 1750, after his second invasion of India, Ahmad Shah launched his first campaign into Khorasan. Intent on conquering Herat, Ahmad Shah besieged the city for a long period of time until it finally fell in late 1750.
With the fall of Herat, Ahmad Shah continued his campaign into Khorasan, invading the Afsharids and besieging Mashhad, where he remained until November 1750. Attempts to storm the city by the Afghans were unsuccessful, and Lee and Gupta state that Shahrokh Shah surrendered to Ahmad Shah personally so he could raise the siege. Shahrokh Shah accepted Afghan suzerainty, paying large tribute and releasing members of Ahmad Shah's family.
Noelle however, states that Ahmad Shah lifted the siege on 10 November, and was intent on returning years later. Shahrokh Shah had released a son of Ahmad Shah, possibly being Timur Shah Durrani, or Ahmad Shah's youngest son, Sanjar Mirza.
Nonetheless, after the siege of Mashhad, Ahmad Shah advanced to Nishapur, which was ruled by the Qara Bayat Amirdom. He besieged the city and demanded its surrender, which the governor, Jafar Khan, refused despite only having a few thousand men as garrison. Ahmad Shah ordered the walls to be breached, utilizing cannons, which the Afghans surged through. However, the defenders of the city had established defenses and a trap, which the Afghans fell into. Close-quarters combat began after, in which Jafar Khan was killed. His nephew, Abbas Quli, took command of the garrison and repulsed the Afghan forces, inflicting horrific casualties unto them, including some 12,000 dead, and thousands more wounded.
With his army seriously weakened, Ahmad Shah ordered a retreat to Herat. The harsh winter weather killed thousands while the Afghans retreated, and Ahmad Shah was forced to leave behind much of his baggage, including his artillery and food supplies. When the Afghans reached the Hari Rud river, it was completely frozen. Attempting to cross it caused much of the ice to break, killing even more men and sweeping away pack animals for the army.
Upon the armies return to Herat, Ahmad Shah faced an assassination conspiracy from Darwish Ali Khan Hazara, Ahmad Shah's governor of Herat. The conspiracy was quickly quelled and Darwish Ali was imprisoned, where in his stead, Ahmad Shah appointed Timur Shah as the new governor.

### Third invasion of India (1751–1752)

Possibly due to Ahmad Shah's struggle in Khorasan, Moin-ul-Mulk failed to pay the agreed tribute to Ahmad Shah from his second invasion on the revenues of Gujrat, Aurangabad, Sialkot, and Pasrur. Inducing Ahmad Shah to invade again, he began in November 1751, leading his forces to invade the Punjab. Moin-ul-Mulk immediately sent 900,000 rupees forward as tribute, which Ahmad Shah seized and continued his march. With the advance guard under Jahan Khan, Ahmad Shah led his forces through Rohtas, Gujrat, and Shahdara. Jahan Khan's forces pillaged the countryside while skirmishes began with Moin-ul-Mulk, who raised his own force to meet the Afghans in battle. The advance of Ahmad Shah triggered mass panic in Lahore, with many fleeing to Delhi or Jammu for safety.
In January 1752, Ahmad Shah forded the Ravi in secrecy at Ghazipur, before advancing on Lahore. Jahan Khan began advancing on Lahore as well, initially being driven out of Faiz Bagh, and instead establishing himself at the Shalimar gardens. Moin-ul-Mulk immediately dashed back to Lahore, to which the Afghans laid siege for over four months. Receiving no aid from the Mughals, or any other nobles, Moin-ul-Mulk settled for a pitched battle with the Afghans outside of Lahore.
On 6 March, after a fierce battle, Moin-ul-Mulk was defeated and surrendered to Ahmad Shah, who received him in person. Impressed by the efforts of Moin-ul-Mulk in his resistance, Ahmad Shah instated him as the governor of Lahore under his suzerainty. Lahore was however, plundered and slaughtered. Following this, Ahmad Shah drafted a peace treaty with Moin-ul-Mulk, officiating the annexation of the Punjab including Multan and Lahore, and as far as Sirhind to the Durrani Empire. The Mughal Emperor Bahadur Shah signed the treaty on 3 April 1752, ending Mughal rule in the Punjab.
Having conquered the Punjab, Ahmad Shah also dispatched his general, Shah Pasand Khan, with 15,000 men to Kashmir, which was embroiled in civil war. Supporting the deposed governor, Mir Muqim, Afghan forces quickly occupied Srinagar and established complete control in the province.

### Turkestan (1751–1768)

At the start of Ahmad Shah's reign, he had held friendly relations with the ruler of the Maimana Khanate, Hajji Bi, who had assumed control over the Chahar Wilayat. Coming into conflict against Hazara Bi, the ruler of Qataghan, Hajji Bi lost control over Balkh to the Qataghanids. In 1751, Hajji Bi, with a delegation of amirs, traveled to Herat, seeking Ahmad Shah's aid to reclaim Balkh. Ahmad Shah accepted the call to arms, forging an alliance with Hajji Bi, and sent thousands of Afghan and Qizilbash men under Allah Khan Turkman. Hajji Bi was also bestowed by Ahmad Shah the titles of governor of Balkh and tax collector.
Not much information is given about the campaign against the Qataghanids. However, by the summer of 1752, the forces of the alliance were victorious, and Balkh was restored to the rule of the Maimana Khanate. While the campaign ensued, a commander of one of the Afghan Qizilbash forces fought with Allah Khan, prompting Mizrab Bi, a son of Hazara Bi, to revolt in 1753. Hajji Bi urgently requested aid from Ahmad Shah again, which he responded with by sending 5,000 men north. After having been restored to Balkh, Hajji Bi pursued a campaign in Qataghan, and with aid from the Afghans, the revolt was defeated. Mizrab Bi was brought to submission, and Badakhshan was subjugated as well.
In 1755–1756, Hajji Bi petitioned Ahmad Shah at Kabul to be made commander-in-chief of forces in Balkh. The request was accepted, stripping Allah Khan of his position. However, Hajji Bi became noted for his abuse of power in the position, triggering an investigation by the Afghans, who sent Allah Khan to oversee the affairs of the region. Allah Khan immediately declared the reports of oppression to be true, and was reinstated as commander-in-chief in Balkh. Ahmad Shah also declared a new governor of Balkh, Nawab Khan Alakozai.
Believing that it was the beginning of the Afghans attempting to assert their own hegemony over all of Turkestan, Hajji Bi began plotting with Izbasar, the ruler of Sheberghan. The two began a rebellion that achieved little, ending in a pardon for both Hajji Bi and Izbasar. In 1761, Rahim Bi Manghit, the ruler of Bukhara, began an invasion of Afghan Turkestan, intent on re-establishing Bukharan suzerainty over the region. Izbazar declared his loyalty to the ruler of Bukhara, and aided in the invasion. Bukharan forces initially overran Aqcha before being defeated by Allah Khan, who built a pyramid with the head of dead Bukharan soldiers. Afghan forces continued to Aqcha, where the Bukharans and Izbasar were defeated again. Aqcha was besieged, while another force of 8,000 Bukharans were sent to Aqcha to relieve the siege, only to be defeated by the combined forces of Allah Khan and Hajji Bi.
Attempts to breach the walls of Aqcha failed, and instead, negotiations began. The Bukharans withdrew across the Amu Darya, while Allah Khan was sent to Sheberghan to bring Izbasar into submission. Izbasar, however, opened negotiation with Nawab Khan, who demanded Allah Khan be put to death due to an enmity between the two. Izbasar complied, executing Allah Khan, receiving a pardon from Nawab Khan as a result.
In 1768, a rebellion in Qataghan and Badakhshan prompted an invasion from Shah Murad Manghit, the next Bukharan ruler. Ahmad Shah sent 6,000 men under Shah Wali Khan to face the rebels. As a result, Shah Murad crossed the Amu Darya, advancing to Qarshi, and threatening to attack Aqcha. In response, Ahmad Shah mobilized an army, affirming his authority in Maimana, Andkhoy, Sheberghan, and Balkh as he advanced. This quickly brought Shah Murad to negotiation, who recognized Afghan control over Balkh, with the amirs of the Chahar Wilayat also submitting tribute to the Durranis. To further avoid a battle with the Afghans, Shah Murad surrendered the cloak of Muhammad after Ahmad Shah had demanded it. With the cloak, Ahmad Shah created a shrine known as the Kirka Sharif, which was built next to his tomb.

### Second Khorasan campaign (1754–1755)

In 1754, Ahmad Shah began preparing for a second campaign to Khorasan. During this time, Nishapur was besieged by Alam Khan, a former Afsharid viceroy. When Ahmad Shah began his invasion, Alam Khan's army completely dispersed, forcing his withdrawal to Sabzevar.
Beginning his campaign in May 1754, Ahmad Shah departed from Herat with his army and advanced toward Tun. Ahmad Shah dispatched Jahan Khan and Nasir Khan, the ruler of the Khanate of Kalat, to devastate the countryside. Following this, the Afghan forces marched against the governor of Tabas, Ali Murad Khan, who assembled his own army and met the Afghans in battle. Singh describes the battle that took place as one of the most bloodiest battles in Persian history. Ammunition failed to gain any clear advantage for both sides, forcing both armies to draw swords and began clashing. The battle remained indecisive until Ali Murad Khan was killed, and the remaining Persian army was completely routed.
With the Persians defeated, Tabas and Tun were conquered in between June and July 1754 by the Afghans. Ahmad Shah then led his forces to Mashhad, arriving before the city on 23 July. A long siege protracted until the Afsharids finally submitted to Ahmad Shah on 1 December 1754. On the 4th, Ahmad Shah's name was read in the sermon, acknowledging his sovereignty over the Afsharids. With their victory, the Durranis annexed territories of Torshiz, Bakharz, Jam, Khaf, and Turbat-e Haidari from the Afsharids. On 9 May 1755, Shahrokh Shah was officially re-instated as ruler over Mashhad, effectively as a Durrani protectorate. Following this, Ahmad Shah began his march on Nishapur in the spring of 1755, while Shah Pasand Khan was dispatched toward Mazandaran against the Qajars.
During the siege of Mashhad, The Camesgazak Kurd contingent of Alam Khan's forces completely defected to the Afghans, killing Alam Khan as well after dragging him from Sabzevar, which was conquered.
On 17 June 1755, the Afghan armies arrived at Nishapur, resulting in Abbas Quli's immediate submission. Abbas Quli sought to be pardoned for giving resistance during Ahmad Shah's first campaign. Not long after, however, Nishapur raised in rebellion due to news that Shah Pasand Khan had been defeated by the Qajars. The gates of the city were closed on Ahmad Shah's troops, prompting the Afghans to begin a one-week siege. During the siege, Ahmad Shah lacked important siege equipment, which he solved by having every mounted soldier carry kilograms of gunmetals. As the siege began, Ahmad Shah's Armenian cannon makers melted down the metal the soldiers had carried, forging a large cannon. The first shot of the cannon blasted through the city walls, and caused havoc in the city through houses and bazaars.
The weapon forced the submission of the cities elders, and they opened the gates of the city despite Abbas Quli's opposition. The city was then subsequently plundered, with the populace of the city spared if they went to mosques and didn't take anything with them. Afghan forces went to houses and tore down the defenses, razing significant portions of the city. Following the victory at Nishapur, Ahmad Shah defeated the Qajars and advanced further by sacking the cities of Tun and Tabas, instilling massacres in their cities.
Abbas Quli was initially taken by Ahmad Shah until he had earned his favor. Abbas Quli married one of Ahmad Shah's daughters, while Ahmad Shah married Abbas Quli's sister. With the arrangements, Abbas Quli was allowed to return to Nishapur as governor of the city. He would remain close to Ahmad Shah throughout his life.

### Fourth invasion of India (1756–1757)

Moin-ul-Mulk governed the Punjab until his death in November 1753, and was succeeded by Mughlani Begum. In March 1756, Mughal vizier Imad ul-Mulk imprisoned and replaced her with Adina Beg. Mughlani Begum pleaded Ahmad Shah to lead another invasion, promising wealth.
Due to the tyrannies of Imad ul-Mulk, several nobles such as Najib ud-Daula, a chief of Rohilkand, and the new Mughal emperor Alamgir II, pleaded for Ahmad Shah to invade. Ahmad Shah accepted the invitations and began his fourth invasion in November 1756, leaving Peshawar on the 15th, and crossing Attock on the 26th with an army of 80,000 men. He reached Lahore on 20 December, seizing the city with little resistance. Ahmad Shah garnered tribute from the city before continuing his march, crossing the Sutlej river on 10 January at Ludhiana, while the advance guard under his general, Jahan Khan, seized Sirhind, Karnal, and Panipat.
The Marathas, who had signed a treaty to protect the Mughals from foreign invasions in 1752, assembled a contingent of 3,400 men under Antaji Mankeshwar, battling the Afghans at Narela. The Maratha forces, however, were defeated and forced to withdraw with losses of 100 men. Following the defeat of the Marathas, Najib ud-Daula defected to the Afghans, with Imad ul-Mulk surrendering not long after. Jahan Khan continued his advance to Luni and besieged Shahdara on 17 January, with the Jama Masjid in Delhi reading Ahmad Shah's name in the Khutbah as a sign of sovereignty. The Afghan forces continued advancing on Delhi, arriving before the city on 28 January.
Meeting with Alamgir at the Fatehpuri Mosque, Ahmad Shah led a grand entry into Delhi, which was marked with a gun salute. However many inhabitants of the city had already fled or hidden, with the streets completely deserted. Many people barricaded themselves in their houses. Ahmad Shah's name was also inserted in the Khutbah for other mosques. Initially, the Afghan army was ordered not to sack the city.
Alamgir was placed under house arrest, and houses outside the city of Delhi were ravaged. On the 29th, the bazaars of the city were sacked and Jahan Khan's soldiers extracted tribute from Feroz Shah Kotla, a large fortress in Delhi. On 30 January, Ahmad Shah minted coins in his name. He further married Hazrat Begum, a daughter of Alamgir, whilst also marrying his son, Timur Shah Durrani, to another daughter of Alamgir.
Ahmad Shah then ordered all Hindus to wear distinctive marks on their head, as well as forbidding non-Muslims from wearing the turban. Extortionate demands were also placed upon the Mughal nobility. The Mughal nobility refused, to which Ahmad Shah dispatched his own tax collectors, demanding additional tribute. Those suspected of concealing valuables were subjected to torture, including foot whipping. Many thousands died or were crippled as a result, while others resorted to suicide. Additionally, a tax was imposed on every household in Delhi.
Imad ul-Mulk was forced to hand over gold and ornaments valued at 10 million rupees, and another 300,000 gold coins. Intizam-ud-Daulah was summoned, and many of his assets were confiscated, including over 10 million rupees and 100 of his wives. Unable to produce the required wealth, Intizam admitted that his father had buried a fortune, which the Afghans uncovered. The Afghans recovered over 15 million rupees in cash, along with various goods, including 200 golden candles that were the size of a man. The treasure also included diamonds, rubies, pearls, and emeralds.
After the sacking, Ahmad Shah campaigned against the Jats. Suraj Mal, the ruler of the Jats, initially submitted to Ahmad Shah, but refused to send asylum seekers from the sacking of Delhi, resulting in conflict. An Afghan force was sent to Faridabad, seizing the fortress and razing it. However, a Jat raid under Jawahar Singh defeated the Afghans, massacring them. Ahmad Shah, in response, laid siege to Ballabhgarh, while Jahan Khan and Najib ud-Daula were dispatched to loot the surrounding regions. They advanced toward Mathura, while Jawahar Singh met them for battle at Chaumuhan. The battle that ensued left between 10 and 12,000 dead on both sides combined, with an innumerable amount of men wounded as well. Jawahar Singh, however, alongside Antaji Mankeshwar, reinforced Ballabhgarh. The cannon fire of the Afghans completely broke the defenses of the fortress, forcing Jawahar to withdraw in the night, with Afghan forces seizing the city on 4 March. An expedition under Abdus Samad Khan, another one of Ahmad Shah's generals, nearly arrested Jawahar Singh through ambush, but Jawahar ultimately evaded capture.
Toward the end of February 1757, the Afghan forces arrived at and attacked Mathura. The city, despite being inhabited overwhelmingly by non-combatants, mainly pilgrims due to the Hindu Holi festival, was attacked and the inhabitants were massacred by the Afghans. The Afghan forces slaughtered and defiled the bodies of Hindu ascetics by humiliating them with slaughtered cows. Temples of the city were razed, and the images of idols were destroyed. Jahan Khan furthered the massacre by rewarding a bounty of five rupees for every Hindu head, resulting in the death of thousands of men, women, and children. The Muslims of the city were subjected to the attack as well. Following his massacre at Mathura, Jahan Khan continued his campaign, with the city of Vrindavan being attacked and its inhabitants massacred on 6 March. The Tarikh-I-Husain Shahi establishes the idol destruction in line with iconoclasm, remarking: "Idols were broken and kicked about like polo-balls by the Islamic heroes."
Ahmad Shah, following Jahan Khan, attacked the city of Gokul on 16 March, which was inhabited by Naga Sadhus, a Hindu Bhakti sect. The Afghans attacked the city where a battle ensued, resulting in the death of 2,000 men for both sides. Jugal Kishor, a diplomat from the Bengal Subah, informed Ahmad Shah that there was nothing of value in Gokul. Ahmad Shah ordered a withdrawal, sparing the city from a sacking.
On 21 March, Jahan Khan arrived before Agra with 15,000 men, besieging the city. Civilians from the town received Jahan Khan and his army, promising 500,000 rupees in tribute. However, after failing to raise the amount, Afghan forces entered the city, plundering it and massacring over 2,000. The Afghan forces attempted to seize the citadel but failed due to the defense of Mirza Saifullah, the garrison commander. He defended the fort with extensive artillery usage, preventing the Afghans from approaching with cannons. Jahan Khan seized 100,000 rupees in tribute, before withdrawing to Ahmad Shah's camp on 24 March after being recalled.
Cholera had broken out in the Afghan camp, killing around 150 men per day, beginning mainly from the polluted Yamuna River which was overwhelmed with bodies. As a result, Ahmad Shah intended to return to Afghanistan, especially to secure the loot from the campaign. The heat as a result from the beginning of the Indian summer also convinced him. As a result, Ahmad Shah began returning for Afghanistan in April 1757, declaring his son, Timur Shah, governor of the Punjab, while Jahan Khan served as his deputy. Sirhind was annexed from the Mughals, while Imad ul-Mulk was re-instated as vizier, with Najib ud-Daula given the office of Mir Bakhshi. Alamgir was permitted to rule Delhi, however as a vassal of the Durrani Empire.
The Afghan invasion had dire consequences for the Mughal Empire, as most of the Mughal army, along with those from the Bengal Subah, were forcibly deployed against the Afghans. Mere months later, the army of the Bengal Subah, weakened due to the Afghan invasion, were utterly defeated at the Battle of Plassey, beginning the rise of British power in India.
The total loot Ahmad Shah carried back to Afghanistan is disputed. Its been estimated from contemporary writers that the Afghans seized 30 to 300 million rupees worth of goods. Over 28,000 elephants, camels, and mules carried Ahmad Shah's loot, alongside his 80,000 men, who carried whatever they took, with many of the Afghan cavalry returning on foot, while they loaded loot unto their horses. The massacres done by the Afghans throughout the campaign made the Yamuna River flow red with blood for two weeks.

### Durrani administration of the Punjab (1757–1758)

Timur Shah, being only eleven years old, saw the Punjab governed mostly by Jahan Khan, who was noted as an experienced warrior, but incapable administrator. He attacked the Sikhs who were celebrating the Diwali festival at Amritsar in 1757, as well as destroying and polluting many Sikh shrines, declaring Jihad. The tyrannies of Jahan Khan resulted in the Sikhs forging an alliance with Adina Beg, who had initially fled during Ahmad Shah's fourth invasion.
As a result, Jahan Khan led a campaign against Adina Beg in the Jalandhar Doab, pillaging the region. Adina Beg acquiesced to submitting tribute, but ignored summons to the Afghan court in Lahore. On one such occasion of being summoned, Adina Beg refused to trust Jahan Khan and fled to the Hill states, where he forged an alliance with Vadbhag Singh Sodhi and Jassa Singh Ahluwalia, the leader of the Dal Khalsa.
Jahan Khan dispatched a force under Murad Khan in response, meeting the alliance at the battle of Mahilpur, where the Afghans were defeated, allowing the looting of the Jalandhar Doab. Further dispatches from Lahore were sent to quell the alliance but all were defeated, allowing the Sikhs to plunder the suburbs of Lahore.
Further complications occurred for the Afghans, as a Maratha force led by Raghunath Rao had arrived at Agra in May 1757 by the time Ahmad Shah was crossing the Indus River back to Afghanistan. The Maratha forces completely seized the Ganges Doab, and defeated Najib ud-Daula at the battle of Delhi in September 1757. Alamgir II was retained on the throne as a puppet, and Imad ul-Mulk remained as vizier. Adina Beg thus requested the Marathas to invade the Punjab, which Raghunath Rao accepted.
The Maratha invasion began in February 1758, advancing and reaching Sirhind in March, which was besieged. Abdus Samad Khan, the Afghan governor of Sirhind, fled the city but was eventually captured, with Sirhind being plundered after. The developments at Sirhind alerted Jahan Khan, who raised an army of 2,000 men and scouted far ahead of Lahore, but refused to give battle to the alliance. Upon receiving news that the Marathas were approaching Lahore, he began preparing to return to Afghanistan on 19 April.
Establishing camp at Shahdara, the Afghans retreated across the Ravi, leaving Lahore in lawlessness, and to be captured by the alliance. Afghan rearguard contingents were ambushed by the Marathas, emboldening Jahan Khan and Timur Shah to speed their progress to Afghanistan. Further close encounters at Eminabad saw the Afghans driven to the Chenab below Wazirabad, where they were attacked by the Marathas and Sikhs, who took some two hundred Afghan prisoners. After this encounter, modern scholarship designates the end of the Maratha pursuit. Near contemporary sources state that the Marathas were able to establish themselves at Attock, and possibly even Peshawar.

### Kalat Rebellion (1758—1759)

With the Maratha conquest of the Punjab, Nasir Khan, the ruler of the Khanate of Kalat, declared his independence from Ahmad Shah. Attempts to conciliate and have Nasir Khan return to Afghan suzerainty failed, prompting Ahmad Shah to dispatch a force under Shah Wali Khan, which was defeated at Pringuez, forcing their retreat to Quetta.
Informed of the defeat, Ahmad Shah raised his own force and marched against Kalat in the summer of 1758. He met Nasir Khan in battle at Mastung, where the forces of Kalat were defeated, prompting Nasir Khan's withdrawal to Kalat, which Ahmad Shah besieged. The siege of Kalat continued for forty days to no avail, and numerous storming attempts by the Afghans failed.
Nasir Khan, beleaguered of having been trapped in his capital, opened peace negotiations with the Afghans, apologizing for his rebellion. Ahmad Shah, having no intentions to annex Kalat or to bestow the province unto another governor, reaffirmed Nasir Khan in his position. A treaty was made, stipulating that Nasir Khan would re-enter and recognize the suzerainty of Ahmad Shah, but he would pay no tribute, and would furnish troops when called upon for war paid by the Shah. After the treaty, Ahmad Shah married a cousin of Nasir Khan.
Months later, a dervish began a revolt by having an individual named Mir Khush Khan Durrani proclaimed as King. The rebellion however, was crushed with the dervish who instigated the revolt being executed, and Mir Khush Khan being blinded.

### Fifth invasion of India (1759–1761)

Preoccupied with the uprising in Kalat, Ahmad Shah was unable to pursue a campaign against the Marathas. He dispatched many of his generals to lead attacks unto them, such as Jahan Khan and Nur ud-Din Bamizai, who were both defeated. In October 1759, Ahmad Shah began his fifth invasion of India. He had been invited by numerous rulers and religious leaders across India, including Shah Waliullah Dehlawi, who wrote to Ahmad Shah pleading for him to save the Muslims of India. Ahmad Shah utilized this in having it declared a jihad by religious leaders in Kandahar. Further invitations were sent by Najib ud-Daula, who wanted India to become a permanent extension of the Afghan empire. Alamgir II sent fervent requests to Ahmad Shah for aid, affirming his loyalty and informing him of the intentions of Imad ul-Mulk, who wished to him. Even Hindu rulers such as Madho Singh, the ruler of Amber, and Vijay Singh, the ruler of Marwar, were discontent over Maratha expansion, and sent letters to Ahmad Shah. Ahmad Shah also wished to avenge the defeat of his son, Timur Shah, and to reclaim the lost territories of the Punjab.
Beginning his invasion, Ahmad Shah split his forces to attack from two sides. Jahan Khan advanced from Kandahar to Kabul, and then through the Khyber Pass with an army of 20,000, while Ahmad Shah led a force of 40,000 through the Bolan Pass. He was further reinforced by Nasir Khan, and other Afghan chiefs, eventually fording the Indus on 25 October, 1759. As Ahmad Shah entered the Punjab, Jahan Khan had forced the Maratha forces stationed at Attock to evacuate, pursuing them and battling at Rohtas, where the Maratha army was routed, forcing a withdrawal to as far as Delhi.
As this happened, Ahmad Shah approached Multan with his army. The Maratha governor in response, fled to Lahore, leaving the city to be captured without resistance. With the Afghans converging on Lahore, the Maratha forces withdrew to Batala, and then Sirhind, with some Maratha detachments being caught and destroyed. At Lahore, Jahan Khan battled with the Sikhs. No clear victor emerged, and the Afghans suffered some 2,000 dead, while Jahan Khan was wounded during the battle.
The approach of Ahmad Shah Durrani caused havoc throughout all of Northern India, and Imad ul-Mulk had Alamgir and Intizam-ud-Daulah murdered as a result, placing Shah Jahan III on the Mughal throne. Ahmad Shah continued advancing through the Punjab, with Jahan Khan seizing Sirhind on 27 November, with both armies uniting at Sirhind in December 1759.
Enraged by the execution of Alamgir, Ahmad Shah began racing toward Delhi. He reached Ambala on 20 December, and advanced toward Taraori, beginning a battle against the Marathas led by Dattaji Scindia. The advance guard of the Afghan army came in clash against the Marathas, and was initially routed, beginning a withdrawal. However, Ahmad Shah, ready to support the battle, dispatched 5,000 men under Shah Pasand Khan. The forces of Imad ul-Mulk in the battle completely fled at the sight of Shah Pasand's flag, and the Afghans attacked with muskets. Further detachments of the Afghan army sent by Ahmad Shah brought the battle to an end, with the Maratha force completely surrounded and destroyed.
Following the battle, Ahmad Shah forded the Yamuna and united with the forces of Najib ud-Daula and other Rohilla leaders at Saharanpur. The combined armies marched toward Delhi, encamping at Luni, some 10 kilometers from the Red Fort of Delhi on the other side of the Yamuna. Dattaji Scindia returned to Kunjpura following his defeat at Taraori, and began preparing to defend Delhi from the Afghan army. He first sent Imad ul-Mulk to prepare the defenses of the city. However, Imad ul-Mulk completely deserted the Marathas and fled to Suraj Mal.
Dattaji then advanced to Sonipat, attempting to track Ahmad Shah's movements, which was made difficult as the Afghans kept their movement confidential by killing every Indian that was found outside their houses. As a result, Dattaji established camp at Barari on 4 January, 1760. On 9 January, Najib ud-Daula began crossing the Yamuna with Ahmad Shah following him, beginning the battle of Barari Ghat. The Maratha forces opposed the advance of the Afghans across the river but were overpowered by musketeers, with much of the Maratha army only armed with spears and swords. Dattaji, attempting to enter the fray himself, was shot either in the eye, or the ribs, causing his death. Further Maratha reinforcements were useless against the Afghan musket fire, forcing the Marathas to withdraw from the field with a thousand dead, and the Afghans victorious.
Having defeated the Marathas at Barari Ghat, Ahmad Shah entered Delhi, with his men plundering the city. Much of the population of the city had already fled, and he took Shah Jahan III under his protection instead of claiming the Mughal throne for himself. Ahmad Shah also placed Yaqub Ali Khan as governor of the city, a nephew of his vizier, Shah Wali Khan, before beginning to march against Suraj Mal.
Leaving Delhi on 27 January, Ahmad Shah besieged Deeg on 7 February, although not committing to the siege seriously. While besieging, he sent a detachment under Jahan Khan which routed a Maratha army on 11 February at Rewari. Following this, Ahmad Shah pursued a Maratha force led by Malhar Rao Holkar, who was stationed at Narnaul. After reaching Rewari, Ahmad Shah was evaded by Holkar, and the Maratha force crossed the Yamuna river on 26—27 February, entering Najib ud-Daula's territories. On 28 February, Holkar advanced to Sikandrabad, awaiting for news of the Afghan position. On 1 March 1760, Ahmad Shah dispatched a force of 15,000 under Jahan Khan, Shah Pasand Khan, and Qalandar Khan to halt the Maratha army. The Marathas were caught on 4 March and were completely routed at the battle of Sikandarabad, with many Maratha officers slain. Holkar himself fled for his life to Agra, and then to Bharatpur, meeting Suraj Mal.
With another victory over the Marathas, Ahmad Shah proceeded to Aligarh, which belonged to the Jats, and besieged it. Unable to receive any reinforcement, the fort was surrendered to the Afghans. At Aligarh, Najib ud-Daula advised Ahmad Shah to rest and wait out for the summer and monsoon seasons to pass, especially as the summer had been so catastrophic for the Afghans during the fourth invasion of India. Ahmad Shah accepted, and Najib ud-Daula used this to expel the Marathas from Shikohabad, Phaphund, and Bithoor.
As the Afghans settled in, they resorted to diplomacy to strengthen their position. Ahmad Khan Bangash, although an initial Maratha ally, was appealed to by Shah Wali Khan, Ahmad Shah's vizier, as an Afghan brother. Ahmad Khan thus allied with the Durranis and arrived at their camp on 13 April 1760. The Afghans also successfully negotiated with the ruler of Oudh, Shuja ud-Daula, who united with the Durrani camp in July 1760. Ahmad Shah also held friendly relations with the Rajputs, even declaring to them his intention to invade the Deccan in the winter.
As this occurred, the Marathas sent reinforcements under Sadashivrao Bhau, the cousin of the Peshwa, Balaji Baji Rao. The reinforcements also included Vishwasrao, the heir of the Maratha Confederacy, and nearly all significant Maratha commanders. Sadashivrao was described as an ignorant commander with a short temper and pride, ignoring the advice of more senior commanders who had experience in Northern India, and failing to anticipate certain outcomes.
The Maratha force reached Agra on 14 July. Sadashivrao, finding the Yamuna river overflowing, settled on advancing to Delhi. The Marathas advanced from Mathura and reached Delhi on 23 July, where it was stormed. The city had fallen to the Marathas, but the citadel held out. On 29 July, negotiations for the garrisons withdrawal went underway, and Yaqub Ali was allowed to leave the city with his men unharmed to Ahmad Shah's camp, with Maratha forces entering the fort on 1 August.
The Marathas began facing difficulties when on 4 August, Suraj Mal and Imad ul-Mulk defected from the Marathas and returned to their posts. Furthermore, the Maratha army lacked food and feed for their horses. The situation became so difficult that Sadashivrao recorded in a letter that there was no food to pay for money, and that the men of the army alongside the horses were fasting. Peace negotiations corresponding from Ahmad Shah and the Marathas had also failed, with both seeking their own extensive demands.
By the end of September 1760, the Maratha camp was overridden with starvation. Ahmad Shah was anxious to return to Afghanistan since his settling at Aligarh, as he never intended to form an Afghan empire based in India. The Marathas left Delhi on 10 October, which Ahmad Shah responded by having his army arrayed across the Yamuna. Sadashivrao, intending to seize Kunjpura, which had vast supplies, arrived before the city on 16 October. The battle of Kunjpura ensued which saw the Marathas victorious and the Afghan governor at Kunjpura, Najabat Khan, alongside Abdus Samad Khan killed. Ahmad Shah was unable to help the defenders of Delhi and Kunjpura due to him being stuck on the other side of the Yamuna.
Ahmad Shah, infuriated at the fall of Kunjpura, began preparing a ford over the flooded Yamuna river at Baghpat. The Afghan forces crossed between 25—26 October, massacring a Maratha detachment at near Sonipat. Another battle at Sambhalka saw the Marathas forced back to their camp now established at Panipat. On 30 October, Ahmad Shah reached Sambhalka, and arrayed before the Marathas on 1 November.
Najib ud-Daula was dispatched by Ahmad Shah to prevent Maratha supplies flowing in from Delhi, defeating the forces of Naro Shankar, the Maratha governor of Delhi. Saashivrao in response sent Govind Pant Bundela to invade the Rohilla territories and cut off Afghan supply. Marching with 12,000 horsemen, the Maratha detachment advanced as far as Meerut before being set upon by an Afghan contingent of 14,000 dispatched by Ahmad Shah on 17 December under Atai Khan, who slew Govind and routed the Maratha force, with large amounts of supplies being seized by the Afghans.
With this, the Marathas were cut off from all supplies. A last desperate attempt for peace was sent by Sadashivrao, even agreeing on any term Ahmad Shah deemed fit. Najib ud-Daula shut down the idea and Ahmad Shah rejected peace. As starvation gripped the Maratha camp, Sadashivrao concluded with his cabinet of war on 13 January to attack the Afghans. On 14 January, the Maratha forces assembled and began marching on the Afghan camp. The numbers of the battle vary by source. Mehta presents the Afghans at having 79,800 men, and the Marathas 85,000, with numerous non-combatants. The Afghans had a gradual flow of manpower stream into the army while the Marathas did not, making it definite that the Marathas were far outnumbered at the battle.
Beginning the third battle of Panipat, Ibrahim Khan Gardi unleashed his cannons on the Afghans. However, the troops operating the cannons were completely inexperienced and upon firing, the artillery shots merely flew overhead the Afghan army. Ibrahim Khan, realizing his failure in this regard, held his cannon fire and instead engaged with a detachment of his troops against the Rohilla portions of Ahmad Shah's army. Other Maratha officers attempted to engage as well by Ibrahim Khan's forces, which was met with musket fire from the Rohillas that saw the Marathas beaten back with heavy casualties, while Ibrahim Khan's forces were devastated by Rohilla cavalry, resulting in the losses of over six battalions and Ibrahim Khan himself being wounded, with the Maratha left wing failing.
Sadashivrao led an attack on the Afghan centre as well during this, with both sides numerically similar. Despite the Rohilla victory on the left wing, the Afghan centre was exposed, with the Marathas dismantling over three lines in the Afghan centre, and inflicting some 3,000 dead or wounded. At the pivotal moment, Ahmad Shah surged his reinforcements, some 4,000 Qizilbash to the right wing and 10,000 men to the Afghan centre. Ahmad Shah also dispatched his zamburaks, inflicting heavy casualties onto the Marathas. A counter-attack was thus launched by the Afghans across all fronts.
Amidst the fray, Vishwasrao was killed by a bullet. News of his death spread quickly throughout the Maratha camp, and it led to the desertion of over 2,000 Afghans and Rohillas that were in service of the Marathas. The Maratha left wing was thus dismantled, and routed. As the Rohillas launched their own attack, Holkar fled the battle. The Afghan left wing thus caved in on the centre. The Maratha right wing was completely annihilated by Najib ud-Daula, and Ahmad Shah advanced to the centre to command the final operation of battle.
Sadashivrao attempted to assault the Afghan centre twice but was pushed back with heavy losses. Ahmad Shah then ordered eight thousand reinforcements from his own tribe to attack, which saw Sadashivrao killed amidst the fray. The death of Sadashivrao saw all Maratha resistance dissipate and the Maratha centre was slaughtered. Marathas who tried to escape the battle were pursued.
The casualties of the battle saw as low as 75,000 Marathas estimated to have been killed, to as high as 100,000. This included over 30,000 Marathas perishing in battle, another 10,000 being killed while retreating, and another 10,000 reported missing. While following the battle, 50,000 Maratha camp followers were massacred or sold to slavery.
Panipat resulted in the end of Maratha influence over Northern India. The day following the battle, Ahmad Shah entered the city of Panipat wearing jewels such as the Koh-i-Noor. The Afghan troops massacred any male over the age of fourteen and enslaved the woman and children of the city. Ahmad Shah afterward made a pilgrimage to the tomb of Bu Ali Shah Qalandar, and then left Panipat on 19 July to enter Delhi. Proceeding formally into the Red fort on 29 January, with the khutbah being read in his name and coins being struck. After resting for two months, Ahmad Shah's troops demanded to return to Afghanistan, as much of them had been unpaid for over a year and a half. As a result, after plundering Delhi, he began returning to Afghanistan on 20—22 March.
Ahmad Shah settled the affairs of India by placing Shah Alam II on the Mughal throne with Najib ud-Daula as his Bakhshi, with Jawan Bakht being recognized as heir to Shah Alam. Delhi was given to Najib ud-Daula and Jawan Bakht to rule together, while Imad ul-Mulk was permitted to serve as vizier again. No peace deal was made with the Marathas as the Maratha Peshwa Balaji Baji Rao died soon after Panipat.
While returning to Afghanistan, the Afghan army was attacked by the Sikhs under Jassa Singh Ahluwalia, who carried away stragglers. The Sikhs attacked the Afghan flanks typically at night but maintained distance to avoid the Afghan artillery and cavalry, and avoiding pitched battle. A surprise attack on the Beas river by the Sikhs freed many Maratha prisoners. In response, Ahmad Shah established defenses around his camp every night, and at Lahore, he sent numerous expeditions against the Sikhs that captured and killed many. He completed his return to Afghanistan by May 1761.

### Rebellions in Afghanistan (1760—1762)

While Ahmad Shah campaigned, numerous incidents occurred throughout Afghanistan. When the Marathas occupied Delhi, an uprising triggered under Hajji Jamal Khan Zargarani, who followed off reports that Ahmad Shah had been killed, and proclaimed himself king of Afghanistan. At Kandahar, he struck coins. However, as news of Ahmad Shah's victories trickled in from India, he renounced his claim and fled for his life to a remote area of the country.
Another revolt that had began was under Darwish Ali Khan Hazara, who avoided Shah Pasand's forces, before eventually being allowed to return to Herat between 1761—1762. While in early 1761, Abd al-Khaliq Khan, alongside Dilawar Khan Ishaqzai and Zal Beg Popalzai, who were among Ahmad Shah's tribal council, rebelled. They first went toward the fortress of Grishk, falsely proclaiming that Ahmad Shah had been defeated in India, and declared Abd al-Khaliq as king. The combined forces from Griskh marched to Kandahar, making Ahmad Shah's son, Sulaiman Mirza abandon the capital.
Shah Pasand Khan was dispatched to crush the revolt, and he arrived before the city, elaborating that Ahmad Shah was alive. The rebellion's support thus dissipated and the leaders of the rebellion went to Shah Pasand's camp for mercy. Lesser involved individuals were spared, while Zal Beg Popalzai and other significant leaders were executed. Dilawar Khan fled to Herat where Timur Shah allowed him to become the commander of his personal bodyguard, while Abd al-Khaliq was imprisoned.

## Death and legacy

Ahmad Shah may have suffered an injury due to a flying brick striking his nose when the Harimandir Sahib was destroyed with gunpowder. Other sources state that he suffered from what Afghan sources described as a "gangrenous ulcer", which may attribute to numerous illnesses, such as Leprosy, Syphilis, or a tumor.
Lee writes: "Ahmad Shah gained poor health as a result of all his campaigns. Despite all attempts to treat it, a wound in his nose remained. The ulcer in his later years began eating into his brain". Following the advice of his physicians, he spent part of the summer in the cooler climate of the Margha plain in the Toba Achakzai range during the last few years of his life. He died of his illness on 4 June 1772 (2 Rabi' al-Awwal 1186) in Maruf, Toba Achakzai, east of Kandahar. Some other sources state that he died on 16 October 1772.
Ahmad Shah was buried in the city of Kandahar adjacent to the Shrine of the Cloak, where a large mausoleum was built. It has been described in the following way:
   Under the shimmering turquoise dome that dominates the sand-blown city of Kandahar lies the body of Ahmad Shah Abdali, the young Kandahari warrior who in 1747 became the region's first Durrani king. The mausoleum is covered in deep blue and white tiles behind a small grove of trees, one of which is said to cure toothache, and is a place of pilgrimage. In front of it is a small mosque with a marble vault containing one of the holiest relics in the Islamic World, a kherqa, the Sacred Cloak of Mohammed that was given to Ahmad Shah by Mured Beg, the Emir of Bokhara. The Sacred Cloak is kept locked away, taken out only at times of great crisis but the mausoleum is open and there is a constant line of men leaving their sandals at the door and shuffling through to marvel at the surprisingly long marble tomb and touch the glass case containing Ahmad Shah's brass helmet. Before leaving they bend to kiss a length of pink velvet said to be from his robe. It bears the unmistakable scent of jasmine.
In his tomb his epitaph is written:
   The King of high rank, Ahmad Shah Durrani, Was equal to Kisra in managing the affairs of his government. In his time, from the awe of his glory and greatness, The lioness nourished the stag with her milk. From all sides in the ear of his enemies there arrived A thousand reproofs from the tongue of his dagger. The date of his departure for the house of mortality Was the year of the Hijra 1186 (1772 A.D.)
Durrani's victory over the Marathas influenced the history of the subcontinent and, in particular, the policies of the East India Company in the region. His refusal to continue his campaigns deeper into India prevented a clash with the company and allowed them to continue to acquire power and influence after they established complete control over the former Mughal province of Bengal in 1793. Fear of another Afghan invasion influenced company policy-makers for almost half a century after the Battle of Panipat. The acknowledgment of Durrani's military accomplishments is reflected in an intelligence report made by Company officials on the Battle of Panipat, which referred to Ahmad Shah as the 'King of Kings'. This fear led in 1798 to a Company envoy being sent to the Persian court in part to instigate the Persians in their claims on Herat to forestall a possible Afghan invasion of India that might have halted Company expansion. Mountstuart Elphinstone wrote of Ahmad Shah:
   His military courage and activity are spoken of with admiration, both by his own subjects and the nations with whom he was engaged, either in wars or alliances. He seems to have been naturally disposed to mildness and clemency and though it is impossible to acquire sovereign power and perhaps, in Asia, to maintain it, without crimes; yet the memory of no eastern prince is stained with fewer acts of cruelty and injustice.
His successors, beginning with his son Timur Shah and ending with Shuja Shah Durrani, proved largely incapable of governing the last Afghan empire and faced with advancing enemies on all sides. Much of the territory conquered by Ahmad Shah fell to others by the end of the 19th century. Timur Shah consolidated the holdings of the Durrani Empire, quashed civil war and rebellion throughout his reign and led multiple campaigns into Punjab to try and repeat his fathers success. After the death of Timur Shah, his son, Zaman Shah Durrani ascended to the throne; throughout his reign he lost the outlying territories, alienated some Pashtun tribes and those of other Durrani lineages. Zaman Shah led campaigns into Punjab, capturing Lahore. Due to internal strife, he withdrew on all attempts. He was later deposed by Mahmud Shah Durrani, his brother, and the Durrani Realm continued to disintegrate in the following years from progressive succession crises, usually between Timur Shah's sons, with Mahmud Shah Durrani, Zaman Shah Durrani, and Shah Shuja Durrani. Afghanistan remained disunited until Dost Mohammad Khan's ascendancy in 1826. Chaos had effectively reigned and it ceased to exist as a single entity, disintegrating into a fragmented collection of small countries or units. Throughout his reign, the khan focused on reuniting it and somewhat did so with the Herat Campaign of 1862-63, which retook Herat, and the eventual conquest of the Principality of Qandahar.
In Pakistan, a short-range ballistic missile Abdali-I, is named in the honour of Ahmad Shah Abdali.

## Poetry

Durrani wrote a collection of odes in his native Pashto. He was also the author of several poems in Persian. One of his most famous Pashto poems was Love of a Nation:
   ستا د عشق له وينو ډک سول ځيګرونه By blood, we are immersed in love of you ستا په لاره کښې بايلي زلمي سرونه The youth lose their heads for your sake تا ته راسمه زړګی زما فارغ سي I come to you and my heart finds rest بې له تا مې اندېښنې د زړه مارونه Away from you, grief clings to my heart like a snake که هر څو مې د دنيا ملکونه ډېر سي Whatever countries I conquer in the world, زما به هېر نه سي دا ستا ښکلي باغونه I will never forget your beautiful gardens د ډیلي تخت هېرومه چې را ياد کړم I forget the throne of Delhi when I remember, زما د ښکلي پښتونخوا د غرو سرونه The mountain tops of my beautiful Pashtunkhwa د فريد او د حميد دور به بيا سي The eras of Farid [Sher Shah Suri] and Hamid [Lodi] will return, چې زه وکاندم پر هر لوري تاختونه When I launch attacks on all sides که تمامه دنيا يو خوا ته بل خوا يې If I must choose between the world and you, زما خوښ دي ستا خالي تش ډګرونه I shall not hesitate to claim your barren deserts as my own

## In popular culture

* In the 1994 television series The Great Maratha, the character of Ahmad Shah Durrani is portrayed by Bob Christo.
* In the 2019 Bollywood war drama Panipat film, Ahmad Shah Durrani appears as the main antagonist who invades the Maratha Empire, and is portrayed by Sanjay Dutt.