The primary main figure to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire around present-day Afghanistan as well as the bordering area.[eight][six] Shortly immediately after, the Great Seljuks adopted this title just after defeating the Ghaznavid Empire and taking control of an excellen