The primary important determine to clearly grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who controlled an empire about present-working day Afghanistan and the encompassing area.[eight][six] Before long immediately after, The nice Seljuks adopted this title right after defeating the Ghaznavid Empire and taking Charge of