The Battle of Peshawar took place on May 6, 1834 between the Sikh Empire and the Afghans who were the successors to the Durrani Empire. Maharaj Ranjit Singh had previously won and lost the city of Peshawar 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.