The correct option is A Ghaznavid, 999 CE
Mahmud of Ghazni came from the Ghaznavid Dynasty which had its headquarters in Ghazna i.e. Ghazni in modern-day Afghanistan. The Ghaznavid dynasty was founded by Alaptigin. Mahmud of Ghazni became the sultan in 999 C.E. He invaded India. The invasions to India began in 1001 and went on till 1026.