Built in the early 18th century by King Vijayaraya Chakkaravarthi is the present day form of the Samayapuram Mariamman temple. Another exciting fact is that The Goddess was built only by sand and clay.
There is a story saying that the Goddess Mariamman idol was at the Ranganathaswamy (Lord Vishnu) temple at Srirangam, and one of the respectable chief priests believed that the Goddess idol has caused illness to Lord Vishnu and henceforth Goddess Mariamman idol was moved from Srirangam temple.
At that time, the Goddess Samayapuram Mariamman was found by some of the devotees who are passing by and they built a temple for the idol. The temple was named as Kannanur Mariamman temple.
After the war occurred and when there is a shift in the Vijayanagara Empire, the deity was changed from Kannanur Mariamman temple to Samayapuram Mariamman Temple, to celebrate their success by building a holy shrine for the Goddess.