According to the legend, this temple was constructed by the Pandavas during their exile in the forest (araṇyavāsam).