The first important figure to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire over current-day Afghanistan and also the surrounding region.[8][six] Quickly just after, The nice Seljuks adopted this title after defeating the Ghaznavid Empire and taking Charge of a fair larger sized territ