The origins of this temple trace back several centuries. According to legend, the main deity manifested as a self-carved structure (Swayambhu), drawing kings and saints of old to establish a sanctuary of worship. Over subsequent centuries, various dynamic trusts expanded the structures while preserving traditional Indian architectural design principles.