Prince Peroz was born in 636,[4] and was thus very young at the time of the reign of his father king Yazdegerd III and never exercised the imperial power of the Sasanians.
After the Muslim conquest of Iran, Peroz and much of the imperial family escaped through the Pamir Mountains in what is now Tajikistan and arrived at Tang China, which was more supportive of the Sasanians.
The Tang court created the Area Command of Persia (波斯都督府) at what is now Zaranj/Zābol (疾陵城 Jilingcheng) (on the modern border of Afghanistan and Iran), with Peroz as commander-in-chief (都督 Dudu).
In 678, the deputy minister for personnel of the Tang court, Pei Xingjian, a noble from Hedong Commandery, was ordered to escort Peroz back to Persia.
Pei Xingjian got as far as Suiye (near modern Tokmok, Kyrgyzstan) before returning, while Peroz was forced to spend over 20 years in Tokhara (吐火羅; likely Bactra or Tokharistan) with several thousand followers.