The temple was renovated many times because of age or damage by avalanche. In the 17th century, the temple was renovated by the kings of Garhwal. After the great 1803 Himalayan earthquake, it was rebuilt by the King of Jaipur.