
Since 1823 Peshawar had been ruled by Barakzai sardars, brothers of Dost Mohammad Khan of Kabul, as tributaries of the Sikh kingdom. In 1834, with Dost Mohammad distracted by an invasion from Shah Shuja, Ranjit Singh decided to annex it.
On 6 May 1834 a Sikh army under Hari Singh Nalwa and the young Prince Nau Nihal Singh marched into Peshawar. The Barakzai sardars fled. Hari Singh Nalwa was made governor.
Dost Mohammad tried to recover it in 1835 but withdrew without a battle when faced by the Sikh army. Peshawar remained in Sikh hands until the British annexation.
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.

The Afghans attacked the new fort at the mouth of the Khyber. Nalwa was mortally wounded; his death was kept secret until relief arrived and the Afghans withdrew.