The location of the area, the ancient traditions and customs still followed here, folk songs coming down from generations, and their contemporaneous literature point to the fact that the area witnessed various events during the periods of the Ramayana and the Mahabharata. The Pandavas held influence over the region after the battle of the Mahabharata and the area was ruled by the descendants of Subahu as administrators under the Kuru Kingdom at Hastinapura. The discovery of Ashokan edicts at Kalsi near Dehradun show that the area was quite prosperous. Huen Tsang also observed Kalsi as "Sudhanagara" in the 7th century AD. Archaeological remains from the time of Raja Rasal have been found at Haripur near Kalsi.