 In ca.1008, Mohammad married the daughter of the Farighunid ruler Abu'l-Nasr Muhammad.Two years later after the death of Abu'l-Nasr Muhammad, Mohammad was appointed by his father as the governor of Guzgan, thus putting an end to the native Farighunid dynasty of Guzgan.