The correct option is D 997 CE to 1030 CE
Sultan Mahmud of Ghazni ruled from 997 CE to 1030 CE. He was known for raiding temples in India to loot wealth. He attacked the Somnath temple in Gujarat. He ruled regions in Iran, Central Asia and north-western parts of the Indian subcontinent.