The main important determine to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire above existing-working day Afghanistan plus the bordering location.[eight][six] Soon just after, the Great Seljuks adopted this title after defeating the Ghaznavid Empire and taking control of an even larger