It was here that the Pandavas along with Krishna are said to have prayed to Shiva and to have received his blessings for victory in the battle of Mahabharata.
[1][2] The ninth Guru, Shri Tegh Bahadur stayed at a spot near the Sthaneshwar Tirtha that is marked by a gurdwara just beside the temple.
Pushpabhuti, the founder of the Vardhana Empire of Thanesar named the capital of his kingdom after Sthaneshwar Shiva.
The existing temple was constructed by Raghunath Rao Peshwa.
This article about an Indian Hindu place of worship is a stub.