As per the legends, the Shiva Lingam got manifested by invocation of Mantras by eldest Pandava brother, Yudhishthira when they were going to Virat Nagar during exile. Later in 1870, Lord Shiva appeared in the dreams of Pandit Jeevanalal sharma, a tehsildar (tax inspector). Then he built the top of the temple. Since 1970, Shiva temple development board, registered under Haryana government has been looking after temple affairs.