isfaraini's main task was to find the money to finance the military campaigns of the ghaznavids, and managed to accomplish that for a few years; he managed to raise a large sum in only two days. however, the situation became troublesome by drought and consequent bad harvest, and a plague that followed. still in 1010/1, isfaraini managed to raise a considerable amount in herat, which, however, was not enough for mahmud, who ordered him to also use his own money to finance the ghaznavid military campaigns. isfaraini, however, disobeyed, and went voluntarily to prison; his property was confiscated and when he was accused of extortion, he was brutally tortured, which resulted in his death in 1013/4. some authors mention that one of the reasons for the downfall of isfaraini was because of a quarrel between mahmud and isfaraini over a turkic slave.