The Temple was constructed in the early 11th century CE by the Chola king Kulothunga Chola-I and was expanded further in 1336 by the Emperors of Vijayanagara dynasty. There is an interesting legend about the sthala purana of this ancient temple which has 1000 years’ history.