The primary major figure to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who managed an empire in excess of existing-working day Afghanistan and also the encompassing location.[8][6] Shortly soon after, The nice Seljuks adopted this title after defeating the Ghaznavid Empire and taking control of an excellent