The 1st significant determine to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire in excess of current-working day Afghanistan as well as the encompassing location.[8][six] Soon right after, The nice Seljuks adopted this title just after defeating the Ghaznavid Empire and taking Charge of