 With Tahir's death Khalaf was no longer left with any suitable heirs.Khalaf's reign had grown increasingly unpopular over the years; his unpopularity especially grew after Tahir's rebellion.After Tahir died, the commander of his army sent a message to Mahmud of Ghazna, stating that the people of Zarang wanted him to become the ruler of Sistan.