Mahmud of Ghazni raided the holy city of Thanesar (Kurukshetra) in 1014 AD to plunder its famous temples, including the sacred idol of Lord Chakraswamin.