The first key determine to clearly grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who managed an empire about present-day Afghanistan as well as the bordering region.[eight][six] Before long after, The nice Seljuks adopted this title right after defeating the Ghaznavid Empire and taking control of a fair larger sized ter