The very first key determine to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who managed an empire more than current-day Afghanistan as well as surrounding region.[eight][six] Before long soon after, The nice Seljuks adopted this title just after defeating the Ghaznavid Empire and taking control of a fair lar