The temple was constructed during the 18th century. There is believed to be a legend associated with the construction of this particular temple. A follower of Lord Shiva named Vishnu Das, came to live permanently with his family in Ayodhya. He along with his other members of the family was not gladly received by the local people and was looked at with extreme mistrust. However, Vishnu Das was able to prove his virtuousness by tightly holding on to an iron bar which was red hot and thus, earned an excellent repute within the locals.