Pirpiai is said to have been named after Pir Muhammad Khan of Pirpiai, an Afghan (at that time the area was part of Afghanistan).
According to the Tareekh-e-Peshawar by Rai Bahadur Munshi Gopal Das, in 1874 there were 52 Hindus and 1502 Muslims living in the village [REF].