Kuhistān
Kuhistān was a mountainous region of southern Khorasan, with Qaen among its towns. In 1337 'Abd-Allah b. Mulai held the region and supported the Ilkhanid claimant Togha Temür.
In the fourteenth century Khaf, part of medieval Kuhistān, belonged to the Kartids of Herat, whose dynasty was conquered by Timur in 1381. Under the Timurid ruler Shah Rukh, his vizier Sheikh Ahmad Khafi built the Ghiyathiyya madrasa at Khargerd in 1444, with four iwans and rooms for students.