Habibullah Khan, Abdur Rahman Khan's eldest son and child of a slave mother, kept a close watch on the palace intrigues revolving around his father's more distinguished wife (a granddaughter of Dost Mohammad), who sought the throne for her own son. Although made secure in his position as ruler by virtue of support from the army which was created by his father, Habibullah was not as domineering as Abdur Rahman. Consequently, the influence of religious leaders as well as that of Mahmud Tarzi, a cousin of the king, increased during his reign.