Sun Temple of Modhera was a part of Patan District until 2013, after which it became a part of Mehsana District . The shrine proper of the Sun Temple was built during the reign of Bhima I of Chaulukya dynasty . [ A ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] Earlier, during 1024–1025, Mahmud of Ghazni had invaded Bhima's kingdom, and a force of around 20,000 soldiers had unsuccessfully tried to check his advance at Modhera. Historian A. K. Majumdar theorizes that the Sun Temple might have been built to commemorate this defense. [ 7 ] On a block in the western wall of the cella, there is an upside down inscription .1083" carelessly incised in Devnagari script which correspond to 1026-1027 CE. No other date is found. As the inscription is upside down, it evidences the destruction and reconstruction of the cella. Due to the position of the inscription, it is not firmly considered as the date of construction. On the stylistic ground, it ...