in 1000, abu'l-nasr's father died, and thus he succeeded him, and became a vassal of the ghaznavids, which had become a powerful military power, and had already imposed their authority on other petty iranian kingdoms. abu'l-nasr enjoyed the confidence of mahmud; in 1008 he fought in the center of the ghaznavid line against the karakhanids outside balkh and in the following year escorted mahmud during his campaign in india. he also married off a daughter to mahmud's son mohammad ghaznavi. when abu'l-nasr died in around 1010, mohammad took over the rule of guzgan, even though abu'l-nasr had left a son, hasan. this marked the end of farighunid rule.