Standoff at the Khyber Pass (1834–1835)

The Standoff at the Khyber Pass (1834–1835) was a short conflict from May 1834 to May 1835 between the Sikh forces led by Maharaja Ranjit Singh and the Afghan forces led by Dost Mohammad Khan. The conflict began as the Sikh Empire expanded into Peshawar, deposing the Peshawar Sardars, while also supporting the deposed Durrani dynasty in their attempts to return to the throne of Afghanistan under Shah Shuja Durrani.

Following Shah Shuja's defeat at Kandahar, Dost Mohammad began mobilizing for conflict with the Sikhs and met the Sikhs at the Khyber Pass in a standoff. Following treachery and intrigues by the Sikhs, the Afghans withdrew, and no major engagement took place, ending the short conflict with the withdrawal of Afghan forces on 11 May 1835.

Background
In 1834, Ranjit Singh coincided with the deposed Durrani ruler, Shah Shuja Durrani to restore him to the throne with the aid of the British. Ranjit Singh invaded Peshawar, which was ruled by the Peshawar Sardars, and captured it in May 1834. Shah Shuja however, was defeated by Dost Mohammad Khan and the Kandahar Sardars, being forced to withdraw.

Seeing the occupation as an unjust usurpation of his deposed brothers domains, he informed Ranjit Singh that Hari Singh Nalwa had removed them from their lands, and that Dost Mohammad would take revenge after he had defeated Shah Shuja in Kandahar, threatening that the Afghans would attack Peshawar, intent on removing the Sikhs from there, and even the Punjab.

Ranjit Singh and the Afghans attempted to conciliate relations, but nothing came as a result, leading to Dost Mohammad's mobilization. Dost Mohammad began assembling his armies, and raised already 20,000 men with him. He attempted to make alliances with the Persians and the British, asking for their assistance toward expelling the Sikhs from Peshawar. It was however, refused. The two armies began preparing for war, as Ranjit Singh sent reinforcements from across the Punjab, also assembling 20,000 men and ordering for the reconstruction of defenses in Peshawar, including the fortifying of the Bala Hissar in Peshawar.

To further legitimize his cause, Dost Mohammad Khan took the title of Amir al-Mu'minin, meaning "Commander of the faithful", and declared a holy war against the Sikhs, rallying Muslims in the region toward his cause. He began his march toward Peshawar from Jalalabad on 2 January 1835, with large amounts of Muslims coming from various surrounding regions flocking to support the Afghans in their cause.

Skirmishes and Standoff
Hari Singh Nalwa, stationed in Peshawar with about 20,000 men, faced desertion from Sikhs and Hindus, which he prevented by placing Kanwar Kashmira Singh at the ford of the Indus river to prevent any crossings without permission. Dost Mohammad continued his advance, and upon reaching Dakoh, he captured Sultan Mohammad Khan, and Pir Mohammad Khan, seizing riches from both of them. In December 1834, a skirmish took place which saw Akbar Khan, the son of Dost Mohammad Khan, fight engagements with different Sikh outposts. In one such engagement, Hari Singh Nalwa was defeated, leaving around 150 Sikhs dead and wounded, forcing him to withdraw to Peshawar.

Seeking to avenge his defeat, Hari Singh began using intrigue. He at first asked Ranjit Singh to hold Dost Mohammad to negotiation, while he attempted to divide the camp of the Afghans by offering large bribes to Sultan Mohammad Khan. Hari Singh however, remained impatient, and wished to battle. This was dismissed by other generals, and Ranjit Singh, fearing that Hari Singh would attack by himself, ordered him to await for his arrival.

By the end of March 1835, reinforcements from Gulab Singh had arrived arrived at the Sikh camp, while Ranjit Singh led forced marches and began approaching in April. On 6 May 1835, Ranjit Singh reached the suburbs of Peshawar. Sultan Mohammad Khan, the brother of Dost Mohammad. Sultan Mohammad met the Maharaja and gave him gifts, and Ranjt Singh gave him a letter for Dost Mohammad Khan to make peace. On 7 May, the Ranjit Singh viewed Dost Mohammad's camp from a distance with a telescope. The camp was at the mouth of the Khyber Pass. According to Hari Ram Gupta, "The strength he possessed was 40 to 50,000 of his own and 60 to 80,000 Ghazis." Ranjit Singh created a camp at Kaikuon and stationed his troops about 6 km from the Khan's camp.

Ranjit Singh chose intrigue rather than facing the Afghans in battle and began sending negotiation efforts to Dost Mohammad Khan. However, the true intentions of this were to divide Dost Mohammad Khan's supporters with bribes, prominently, Sultan Mohammad Khan. Josiah Harlan and Faqir Aziz were sent to the camp of Dost Mohammad, who plotted intrigue in the Afghan camp, including making some of his supporters and brothers jealous of the powerful position Dost Mohammad Khan held. This led to Sultan Mohammad's withdrawal from the camp at night with over 10,000 men, as this force defected to the Sikh camp. This sent the Afghan camp into disarray.

The French division under Jean-François Allard, Paolo Avitabile, Claude Auguste Court and Jean-Baptiste Ventura commanded 20 to 22,000 men who marched very slowly and suitably towards the left flank of Dost Mohammad Khan's army. The main Sikh army led by Hari Singh Nalwa, Gulab Singh, Misr Sukh Raj, Tej Singh, Attar Singh Sandhanwalia, Khushal Singh, Dhian Singh, Jawala Singh, Lehna Singh Majithia and Maharaja Ranjit Singh numbered 60–80,000 and approached Dost Mohammad Khan's center and right side.

Dost Mohammad Khan rejected a truce with the Sikhs. He withdrew at night with his troops and Ghazis, believing that he was being surrounded and having faced a bad omen with the stirrup of a horse, the Afghans withdrew and took all their ammunition and guns with them.

Aftermath
Following the Afghan withdrawal, it was believed to be a tactic to lure the Sikhs into Afghan territory where the Afghans could fight on better odds. To remove this concern, Hari Singh, and Dhian Singh were sent with other chiefs to advance up to the Khyber pass, investigating and concluding that the Afghans had fully withdrawn. After this encounter, Maharaja Ranjit Singh returned to Lahore, although disappointed that the campaign had amounted to nothing while spending hundreds of thousands of rupees.