
In 1836 Hari Singh Nalwa built a fort at Jamrud, at the mouth of the Khyber Pass, to hold the frontier against the Afghans.
In April 1837, while the Sikh army was away at Lahore for the wedding of Prince Nau Nihal Singh, Dost Mohammad Khan's sons, with some twenty thousand men, attacked Jamrud, which was held by a small garrison under Mahan Singh Mirpuri. Hari Singh Nalwa, ill at Peshawar, rode to its relief. On 30 April he drove the Afghans back, but was mortally wounded.
He ordered that his death be kept secret. Mahan Singh hid the body and held the fort until the relief army arrived from Lahore, and the Afghans withdrew. The Sikhs held the Khyber, but they had lost the greatest general of the frontier.
Same era
Campaigns of the Kingdom of Lahore, 1799 – 1842
After a month of mining and assault, the Pathan principality of Kasur fell.

The Sikh Empire's first major victory over the Afghans, securing the fort at the Indus crossing.

Rain, hunger and cholera wrecked the first attempt on Kashmir. It took another five years to return.

After several earlier attempts, a large Sikh army breached the walls with the great Zamzama gun and Akali charges. The Nawab died with his sons.

Brought the Kashmir valley under Sikh rule after five centuries of Muslim rule.

A hard battle on the Kabul river that opened the Peshawar valley. The Nihang leader Akali Phula Singh fell leading the charge.

Syed Ahmad Barelvi's jihad movement against Sikh rule in the frontier hills ended when his force was caught at Balakot.

Sikh forces marched into Peshawar and ended its status as a tributary. Dost Mohammad Khan's attempts to retake it led to Jamrud.