Shamsuddin Iltutmish who succeeded Aibak at Delhi invaded Malwa in 1234 AD. He destroyed an ancient temple at Vidisha. Badauni reports: "Having destroyed the idol temple of Ujjain which had been built six hundred years previously, and was called Mahakal, he levelled it to its foundations, and threw down the image of Rai Vikramajit from whom the Hindus reckon their era, and brought certain images of cast molten brass and placed them on the ground in front of the doors of mosques of old Delhi, and ordered the people of trample them under foot.”.