Afghan–Sikh wars

The Afghan–Sikh wars spanned from 1748 to 1837 in the Indian subcontinent, and saw multiple phases of fighting between the Durrani Empire and the Sikh Empire (and its predecessors), mainly in and around Punjab region. The conflict's origins stemmed from the days of the Dal Khalsa, and continued after the Emirate of Kabul succeeded the Durrani Empire.

Background
The Sikh Confederacy had effectively achieved independence from the Mughal Empire in 1716, and expanded at its expense in the following decades, despite the Chhota Ghallughara. The Afsharid Persian emperor Nader Shah's invasion of the Mughal Empire (1738–40) dealt a heavy blow to the Mughals, but after Nader Shah's death in 1747, Ahmed Shah Abdali, the founder of the Durrani Empire declared independence from Persia. Four years later, this new Afghan state came into conflict with the Sikh alliance.

Campaigns of Ahmad Shah Abdali
On 12 January 1748, Ahmad Shah Durrani invaded and occupied Lahore, after the Mughal governor of Lahore, Shah Nawaz Khan, fled to Delhi. Establishing a governor over Lahore, Ahmad marched his army east taking more territory, but was defeated at the Battle of Manupur by Mughals in alliance with Sikhs and fled back to Kandahar. Sikh bands under Charat Singh, Jassa Singh Ahluwalia and Ala Singh continued to harass Durrani forces as they retreated. Thus, the first invasion of Shah proved a failure but it gave an opportunity to the Sikhs to organize themselves into the Dal Khalsa, an army of the Sikh Confederacy, at Amritsar in March 1748. The Sikhs retook Lahore only to lose it to the Afghans by 12 April 1752.

The Sikhs used guerilla warfare to try to oust the Afghans from Punjab. In November 1757, the Sikhs were defeated by the Afghan army at Battle of Amritsar (also known as the Battle of Gohalwar), under the command of Timur Shah Durrani, son of Ahmad Shah Durrani. After witnessing the fall of Lahore, the Durrani commander-in-chief Jahan Khan and Timur Shah fled the city, and while trying to cross the Chenab and Ravi rivers, thousands of Afghan soldiers were drowned and much of the soldiers' baggage abandoned. Sikhs took the captured Afghan prisoners to Amritsar to clean the sacred pool in Amritsar that was desecrated by the Afghans. In 1758, the Sikhs defeated the Afghan faujdar (military officer) Sa‘adat Khan Afridi, who fled from Jalandhar, followed with the defeat of Afghan army from all direction. Though the Sikhs captured and plundered Lahore, the Afghans recaptured Lahore in 1761, but just within a couple of months, in May 1761, the Sikh army defeated the Afghan army, led by Ahmad Shah's governor of the Chahar Mahal, followed with defeat and surrender of relief party sent from Kandahar. Thereafter, Sikhs captured Lahore. In September 1761, near Gujranwala, Ahmad Shah Durrani's governor of the province of Lahore, was defeated by the Sikhs, continued with the defeat and ousting of the remaining commanders of Durrani's, eventually bringing the entire territories from the Satluj to the Indus, under Sikh occupation, along with Bist Jalandhar Doab, Sarhind, Rachna and the Chaj Doabs. Ahmad Shah lost most of the Punjab to Sikhs.

In October 1762, Ahmad Shah Durrani attacked Amritsar but was defeated by the Sikhs. In December 1762, he fought a skirmish with Sikh forces at the Battle of the Ravi Ford in December 1762. In November 1763, Sikh forces had forced Durrani armies to advance upon them, which led to the Battle of Sialkot, where the Afghans were defeated, and were forced to leave their Punjab campaign in the wake of this defeat. At Gujranwala, Jahan Khan was heavily defeated by the Sikhs, who then continued their victory by sacking the towns of Malerkotla and Morinda, followed with the defeat of the commander of Rohtas Fortress, Sarbaland Khan Saddozai, who was captured and imprisoned but later released after consenting to the Sikh sovereignty. The reports of catastrophe enraged Ahmad Shah and wrote to Nasir Khan, beglar begi of Khalat, to join him in jihad (holy war) against the Sikhs, to destroy them and to enslave their women and children, but Ahmad Shah's march to Punjab in 1764, resulted in failure of Jihad with the defeat, ambush and ousting of advance guards by the Sikhs outside of Lahore. In 1765, Ahmad Shah marched again to Punjab with Qazi Mur Muhammad but his authority was only restricted within his camp as he remained on the defensive side with Sikhs swarming around the camp, which eventually resulted in Ahmad Shah's return to Kabul without pursuing even a single battle, where the Qazi noticed with disappointment that the country from Sirhind to Derajat was divided amongst the Sikhs with their sovereignty The Sikh sovereignty was further acknowledged in Lahore by striking a coin which pierced the same inscription that fifty five years ago was used by Banda Singh Bahadur on his seal, followed with re-establishment of 13 Sikh rule.

The Sikhs would also capture Multan in 1772. The period after this would be known as the "Sikh Interlude Period", from 1772 to 1780.

Campaigns of Timur Shah
Timur Shah ascended to the throne of the Durrani Empire after his father, Ahmad Shah Durrani's death. Timur Shah consolidated his rule through multiple attempts, and also attempted an earlier campaign in 1775, however realizing the weakness of his army in view of smaller in number, Timur Shah retired to Peshawar which proceeded with rebellion by Faizullah Khan, who plotted to assassinate Timur Shah but was cunningly executed. In late 1779, Timur Shah decided to conquer Multan. Due to Sikhs having been in possession of the provinces of Lahore and Multan, these provinces served as a barrier for any attempt by Timur Shah to invade, many chiefs and nobility, dependencies of Durranis, paid no respect to the Durrani sovereignty, such as Sind which reduced the amount of tribute and hardly paid it, mostly due to its concurrent civil war between the Talpurs, and the Kalhoras; Nasir Khan Balouch, the ruler of the Khanate of Kalat under Timur Shah did not acknowledge the authority of Afghan monarch, as a result, inducing other Durrani chiefdoms to do the same, including the chief of Bahawalpur, who treated the authority of Timur Shah with no respect. Timur Shah thereupon tried to recover Multan by diplomacy and therefore sent Haji Ali Khan, as his agent, along with companions, to the Bhangi Sikh Chiefs to negotiate, with advice to behave and be polite, but instead, Haji Ali Khan threatened the Bhangi Chiefs to retire from Multan or face the royal wrath. The Bhangis tied Haji to the tree and shot him dead whereas his companions were left unharmed and sent back to report to Timur. Upon the news of death of his agent, Timur Shah detached a force of 18,000 men that included Yusafzais, Durranis, Mughals and Qizalbashes under general Zangi Khan, with orders to march by less known routes and fall upon the Sikhs unaware and Zangi Khan gave strict orders to his army to keep the movement secret. Zangi Khan halted 25 km from the Sikh camps with orders to imprison anyone who goes in the direction of the Sikh camp to make the Sikhs aware of their presence. Timur Shah positioned himself in the centre, at the head of 5,000 Yusafzai men. Little before daybreak, early morning, the Sikhs completely unaware of Afghan army's presence, were attacked, and though unorganized, the Sikhs gave tough resistance but were eventually overwhelmed. About 3000 Sikhs were killed, and 500 others drowned in river Jhelum in trying to cross it during the Sikh retreat, while 2000 escaped by successfully reaching the opposite bank of the river. Following the victory, Timur Shah Durrani captured Multan after meeting the relieving Sikh force in Shujabad where a severe battle was fought on 8 February 1780. The Sikhs lost 2,000 men in killed and wounded and proceeded to flee towards Lahore. Timur sent a large army in pursuit of them and managed to overtake them at Hujra Muqim Khan, 64 km south west of Lahore. After this successful juncture, Timur hurried from Shujabad to Multan and ordered a general massacre in the city and besieged the fort in which the Sikh army was residing. Negotiations were held and with the acceptance of conditions, Timur took over the fort on 18 February 1780, following which Timur Shah appointed Muzaffar Khan as the Nazim of Multan and Abdul Karim Khan Babar, a defected Muslim general of the Sikh army was appointed as Naib (Chief officer) of Muzaffar Khan. Multan would remain under Afghan rule until its loss in 1818 to the Sikh Empire, during the Siege of Multan.

This phase ended with the death of Timur Shah on 20 May 1793, leading his successor, Zaman Shah Durrani to ascend to the Durrani throne.

Campaigns of Zaman Shah
Zaman Shah Durrani ascended to the Durrani throne after his father, Timur Shah died on 20 May 1793. Zaman Shah lead multiple campaigns of Punjab against the Sikhs. His first campaign was in November 1796.

First campaign of Punjab
Zaman Shah's campaign of Punjab in 1796 against the Sikhs, led to capture of Lahore in January 1797, without any opposition as the Sikh chiefs retired to Amritsar to protect the holy city. Zaman Shah progressed towards Amritsar on January 13, 1797, where he was defeated by the Sikhs, 10 km away from the city. As intelligence from Kabul had warned of a possible Persian invasion of main Afghanistan, Zaman Shah was forced to abandon his first Punjab campaign and return home to mobilize an army to combat this threat, headed by his own brother, Mahmud Shah Durrani. The Sikhs recaptured Lahore as he left. After retreat, he left his deputy general, Ahmad Khan Shahanchi-bashi in charge, along with Afghan soldiers but he too was defeated and killed by the Sikhs.

Second campaign of Punjab
Having dealt with Mahmud Shah Durrani for the time being, Zaman Shah returned to Punjab and resumed his campaign once again, occupying Lahore in autumn of 1798, without opposition, as it was strategy of Ranjit Singh to drive them into Lahore and then lay siege to the city. Zaman Shah intended to march on Delhi but the Sikhs laid waste around 150 km of his camp to stop supplies and engaged in skirmishes. Facing determined foe who could cut of his communication with Kabul, Shah Zaman exercised discretion and returned to Afghanistan with his troops on 4 January 1799. Bhangi Sikh Misl recaptured Lahore. Zaman Shah then appointed 19 yr old Ranjit Singh as governor of Lahore to try to divide the Sikhs and returned to Peshawar where Sikhs all along harried the Afghans to river Jhelum. While crossing the river, Zaman Shah lost most men, supplies and heavy artillery due to upsurge. Eventually, Shah Zaman and his remaining army reached Kandahar in late 1799, exhausted from the campaign.

Third campaign of Punjab
Zaman Shah set out his third campaign of Punjab in the spring of 1800, plotted to deal with a rebellious Ranjit Singh. However, having civil strife in Afghanistan, he was forced to cut his campaign short, having to deal with his brother, Mahmud Shah Durrani once again. Shah Zaman would not return to Punjab, and he would be deposed by Mahmud Shah.

Campaigns of Maharaja Ranjit Singh
In 1813, after demanding the return of the fort at Attock, the Durrani prime minister Wazir Fateh Khan besieged Attock. A Punjabi relief force arrived and for three months the two armies faced each other, neither side moving. As the heat from summer started to affect the armies, Dewan Mokham Chand marched his army to block the Afghans from getting water from the river. Without water the Afghan troops began to suffer dehydration, so they launched attack after attack towards the river, but were unable to break through. Chand, realizing the Afghans were weakened, charged his cavalry at the Afghans who broke and ran, losing two thousand men.

Accusing Ranjit Singh of treachery, Fateh Khan set off from Kashmir at the head of 15,000 cavalry in April 1813 and invested Attock Fort. At the same time Ranjit Singh rushed Dewan Mokham Chand and Karam Chand Chahal from Burhan with a force of cavalry, artillery, and a battalion of infantry to meet the Afghans.

Dewan Mokham Chand Nayyar encamped 8 mi from the Afghan camp, unwilling to risk a decisive engagement, although both sides engaged in numerous skirmishes and took losses. On 12 July 1813, the Afghans' supplies were exhausted and Dewan Mokham Chand Nayyar marched 8 km from Attock to Haidaru, on the banks of the Indus River, to offer battle. On 13 July 1813, Dewan Mokham Chand Nayyar split the cavalry into four divisions, giving command of one division to Hari Singh Nalwa and taking command of one division himself. The lone battalion of infantry formed an infantry square protecting the artillery, with Gouse Khan commanding the artillery. The Afghans took up positions opposite the Sikhs, with a portion of their cavalry under the command of Dost Mohammad Khan.

Fateh Khan opened the battle by sending his Pathans on a cavalry charge which was repulsed by heavy fire from the Sikh artillery. The Afghans rallied under Dost Mohammad Khan, who led the Ghazis on another cavalry charge which threw one wing of the Sikh army into disarray and captured some artillery. When it appeared the Sikhs had lost the battle, Dewan Mokham Chand led a cavalry charge atop a war elephant that repulsed the Afghans "at all points", and routed the remaining Afghan troops. Fateh Khan, fearing his brother, Dost Mohammad Khan, had died, escaped to Kabul and the Sikhs captured the Afghan camp, including the lost artillery pieces.

Two months after the victory at Attock, Ranjit Singh decided to capitalize on instability in the Durrani Kingdom, and launched a campaign to take Kashmir from the Durrani Empire. A late Autumn start postponed the campaign until the next spring. By June, an army of 30,000 men under the command of Ram Dyal, grandson of Dewan Mokham Chand, marched toward Baramulla, with a pincer attack of 20,000 men led by Ranjit Singh marching to Poonch.

Ranjit's force was delayed by torrential rains, while Ram Dyal's army took the fortress of Baramulla on 20 July 1814. When Dyal's army reached Shupaiyan, the governor of Kashmir, Azim Khan blocked his advance. Fighting a delaying action, Dyal waited on a reinforcement of 5,000 men from Ranjit. These reinforcements were forced to a standstill by Afghan snipers.

Ranjit Singh's force made little progress. Faced with a scorched earth from the fleeing populace, food supplies became a major issue for his army, followed by a cholera outbreak. Meanwhile, Ram Dyal, who was entrenched near Srinagar, received a proposal from Azim Khan for a negotiated peace and was able to extricate himself from a difficult situation. Ranjit Singh's campaign ended in failure.

Amritsar, Lahore, and other large cities across the Sikh Empire were illuminated for two months afterwards in rejoicing over the victory. After his defeat at Attock, Fateh Khan fought off an attempt by Ali Shah, the ruler of Persia, and his son Ali Mirza to capture the Durrani province of Herat, which left their newly captured province of Kashmir open to attack.

Siege of Multan
In early January the Sikh force began their campaign with the capture of Nawab Muzaffar Khan's forts at Muzaffargarh and Khangarh. In February, the Sikh force under Kharak Singh reached Multan and ordered Muzaffar to pay the large tribute he owed and to surrender the fort, but Muzaffar refused. The Sikh forces won an engagement near the city but were unable to capture Muzaffar before he retreated into the fort. The Sikh army asked for more artillery and Ranjit Singh sent them the Zamzama and other large artillery pieces, which commenced fire on the walls of the fort. In early June, Sadhu Singh and a small band of other Akalis attacked the fort walls and discovered a breach in the wall. As they ran in to battle the unaware garrison the larger Sikh army was alerted and entered the fort through the breach. Muzaffar and his sons attempted a sortie to defend the fort but were killed in the battle.

The siege of Multan ended significant Afghan influence in the Peshawar region and led to multiple Sikh attempts at capturing and the final capture of Peshawar.

Battle of Shopian
The battle took place in the Shopian region in the Kashmir region. This battle included the 1819 Kashmir expedition, which led to Kashmir being annexed to the Sikh Empire.

When the Sikh army entered the city of Srinagar after the battle, Prince Kharak Singh guaranteed the personal safety of every citizen and ensured the city was not plundered. The peaceful capture of Srinagar was important as Srinagar, besides having a large Shawl-making industry, was also the center of trade between Panjab, Tibet, Iskardo, and Ladakh.

After taking Srinagar, the Sikh army faced no major opposition in conquering Kashmir. However, when Ranjit Singh installed Moti Ram, the son of Dewan Mokham Chand, as the new governor of Kashmir, he also sent a "large body of troops" with him to ensure tribute from strongholds within Kashmir that might attempt to resist Sikh rule. The capture of Kashmir set the boundaries and borders of the Sikh Empire with Tibet. The conquest of Kashmir marked an "extensive addition" to the Sikh Empire and "significantly" increased the empire's revenue and landmass.

Battle of Nowshera
The battle took place on 14 March 1823, in the bloody battle of Nowshera, Ranjit Singh led Sikh force's defeated Yusufzai Afghan supported by the Peshawar sardars. Azim Khan Barakzai died shortly after the battle from Cholera.

Battle of Jamrud
The Battle of Jamrud was the fifth and foremost battle within the third Afghan–Sikh war. The result of the battle is disputed amongst historians. Some contend the failure of the Afghans to take the fort and the city of Peshawar or town of Jamrud as a victory for the Sikhs. On the other hand, some state that the killing of Hari Singh Nalwa resulted in an Afghan victory. James Norris, Professor of Political Science at Texas A&M International University, states that the battle's outcome was inconclusive.