The first key determine to obviously grant himself this title was the Ghaznavid ruler Mahmud (r. 998–1030 CE) who managed an empire in excess of current-working day Afghanistan and the surrounding area.[eight][6] Before long following, the Great Seljuks adopted this title after defeating the Ghaznavid Empire and taking Charge of a fair bigger ter