It is said to have originally been built in gold by the moon god Soma, in silver by the sun god Ravi, in wood by Lord Krishna, and in stone by King Solanki of Gujarat.
This temple was built by King Narasimhadeva in the 13th century. This temple has an ancient legend that Lord Krishna cursed one of his own sons with leprosy.