The correct answer is D. Tomar.
The Tomar dynasty was a Rajput dynasty that ruled over Haryana from the 7th to the 12th centuries. They were founded by Tomara, a descendant of the Pandavas, and their capital was at Delhi. The Tomars were a powerful dynasty and they ruled over a large part of northern India. They were known for their military prowess and their patronage of the arts.
The Ghaznavids were a Muslim dynasty that ruled over Afghanistan and parts of northern India from the 10th to the 12th centuries. They were founded by Mahmud of Ghazni, who was a great conqueror. The Ghaznavids attacked India several times and they looted many Hindu temples.
The Tomars were ruling over Haryana when the Ghaznavids attacked the North-West of India. The Tomars fought bravely against the Ghaznavids, but they were eventually defeated. The Ghaznavids looted and destroyed many Tomar cities, including Delhi.
The Tomars were eventually overthrown by the Chauhans in the 12th century. However, they left a lasting legacy on Haryana. They built many temples and forts in the region, and their rule helped to shape the culture and history of Haryana.
The other options are incorrect.
A. The Tughlaq dynasty ruled over India from the 14th to the 16th centuries. They were not ruling over Haryana when the Ghaznavids attacked the North-West of India.
B. The Pushyabhuti dynasty ruled over northern India from the 6th to the 8th centuries. They were not ruling over Haryana when the Ghaznavids attacked the North-West of India.
C. The Gupta dynasty ruled over northern India from the 4th to the 6th centuries. They were not ruling over Haryana when the Ghaznavids attacked the North-West of India.