The ancient Sthaneshwar Mahadev Temple, dedicated to Lord Shiva is situated in Thanesar, a holy town in the Kurukshetra district of Haryana. It was here that the Pandavas along with Krishna prayed to Lord Shiva and received his blessings for victory in the battle of Mahabharata.The temple of Sthaneshwar is the abode of Lord Shiva and this town served as the capital of Emperor Harshavardhana. The temple with a dome-shaped roof follows a regional type of architecture. The facade of the roof is shaped like an 'amla' along with a tall pinnacle. The Lingam is ancient and still venerated by the local people.The ninth Guru, Shri Tegh Bahadur stayed at a spot near the Sthaneshwar Tirtha that is marked by a gurdwara just besides this temple.