The 1st big determine to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who managed an empire above existing-working day Afghanistan and also the encompassing region.[8][six] Shortly immediately after, The nice Seljuks adopted this title soon after defeating the Ghaznavid Empire and taking control of a fair lar