The main main figure to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire in excess of existing-day Afghanistan and also the surrounding area.[8][6] Quickly just after, The nice Seljuks adopted this title following defeating the Ghaznavid Empire and taking Charge of a fair larger territory