The Ghaznavid Empire was a Khorāṣānian Turkish Sunni Muslim state, which existed from 975 to 1187. It was centered in Ghazni, a city in present Afghanistan, and ruled much of Persia, Transoxania, and the northern parts of the Indian subcontinent.