The original temple is believed to be built by Vishnu, however it was destroyed over time. Later, a cowherd is believed to have had a vision of the ancient temple and found the icon of Siddhi-vinayaka. The cowherd worshipped the deity and soon others came to know of the shrine.