Nadir Shah Afshar, having defeated the Pushtun Hotaki ruler Mir Hussain Hotaki in Herat and Ghazni in 1738, attempted to invade India. After his defeat, Mir Hussain Hotaki agreed to send Pushtun forces with the army of Nadir Shah. There were 12,000 Abdali (Durrani) and 4,000 Pushtun Khilji soldiers in this army. A hamlet of the Dalazak tribe was on the south bank of the Kabul River near present-day Pirpiai. The area along the river was forested at that time. When the Shah's forces reached this area they asked the Dalazak tribe to join their army, but they refused. Nadir Shah then ordered his army to destroy and burn the village, causing the Dalazaks to flee from the area. Nadir Shah awarded the area to Daulat Khan, his confidant. Daulat Khan belonged to the Gumoriani also known as the Zmaryani tribe, which is a branch of the Kasi (Pashtun tribe). Daulat Khan rebuilt the village, but it was later destroyed by flood of River Kabul. Pir Muhammad Khan moved some two and a half miles south and settled with family.