The 1st important determine to clearly grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who managed an empire around present-working day Afghanistan as well as surrounding area.[eight][six] Shortly soon after, The nice Seljuks adopted this title following defeating the Ghaznavid Empire and taking control of a fair larger t