The Battle of Peshawar took place on May 6, 1834 between the Sikh Empire and the Durrani Empire. Maharaj Ranjit Singh had previously won and lost the city twice and sent General Hari Singh Nalwa to capture it. After brief fighting Hari Singh Nalwa forced Sultan Mohammad Khan to evacuate the city. A large Afghan force under his brother, Dost Mohammad Khan arrived in support of him but withdrew. Hari Singh Nalwa then installed Sultan Mohammad Khan as governor of the city as a vassal to Maharaja Ranjit Singh.