Mahmud of Ghazni
Thanesar was sacked and many of its temples were destroyed by Mahmud of Ghazni.