Named as the eternal shrine where the legend says the Shiva is seen here as an endless fiery column of light that has no distinct beginning proposes some answerers to the mysteries of this universe and the divine essence within humanity.
The temple underwent numerous reconstructions due to repeated invasions. The present structure was completed in 1955. The origin of the first temple construction was completely unknown as there is a certain proof exists that Yadava Kings in 69 AD reconstructed the temple which has the legend related to the Waxing and Waning of the Moon.
After an Arab Invasion, the temple is reconstructed again by The Gurjara-Pratihara king Nagabhata II in 815 AD, with red-sandstone. And in 1024 AD, it was invaded by Mohammad Of Ghazni where he attempted to have destroyed the linga. Some historians say that the entire desert lands became wealthy by their invasions on Indian treasures. Later in 1169 AD, the temple was rebuilt by Solanki King Kumarapala with exquisite stone carvings embedded with jewels. The invasions continued until Aurangzeb. Later the British investigated the reason behind the repeated temple invasions and found that the Lingam was a Moon Stone!
– Viswanath Venkat Dasari