The 1st key determine to clearly grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire in excess of present-day Afghanistan as well as bordering region.[8][six] Shortly soon after, The good Seljuks adopted this title soon after defeating the Ghaznavid Empire and taking control of a fair larger territory