 She wanted to expatiate herself from the sin by doing penance under the temple's ancient Mango tree near Vegavathi river.In order to test her devotion Shiva sent fire on her.Goddess Parvati prayed to her brother, Vishnu, for help.