According to legend, Mariamman appeared in the dream of a rice trader and asked him to build a shrine for him. He constructed a beautiful temple in Nagapattinam and started offering prayers.
Later this temple became very popular and the devotees believe that the Goddess here has extra miraculous powers. People of this area still hold faith in this legend, and thousands of devotees come here every year.