The main key determine to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire about present-day Afghanistan as well as surrounding location.[8][six] Quickly immediately after, the Great Seljuks adopted this title immediately after defeating the Ghaznavid Empire and taking Charge of a fair mo