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. Finally Peshawar fell under Sikh rule after 998 years when it was ruled by King Jaipal who was killed by Afghans and territory became a part of Kingdom of Kabul in 1000 A.D.