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. The area was attacked by Mahmud Ghaznavi, Timur in 1368. Guru Ram Rai, the errant eldest son of the seventh Guru of the Sikhs, Guru Har Rai, established his 'Dera' (camp) in the Dun Doon Valley around 1676 and the town that grew around this 'Dera' has come to be known as 'Dehradun'. He founded his own Udasi Panth (sect) and received support from Aurangzeb. Rohilla chieftain Najib ad-Dawlah in 1757 and Ghulam Kadir in 1785. This kept the area in disarray till 1801. The British captured the area in 1816 and founded the cities of Landour and Mussourie in 1827–28. The district was added to the Garhwal division in the 1970s. It was established as the capital of Uttarakhand after the establishment of the state as Uttaranchal in the year 2000. Demographics As of the 2011 Census of India, Dehradun district has highest population (1,698,560) in Uttarakhand. The Decadal growth rate has jumped up from 25% (1991–2001) to 32.48% (2001–2011). This is the third highest in Uttarakhand after Haridwar (33.16%) and Udham Singh Nagar (33.40%). The district has a gender ratio of 902 as against a state average of 963. This has however improved from 887 in the 2001 census. The population density is 550, again the 3rd highest after Haridwar(817) and Udham Singh Nagar (648). The state average is 189. The literacy rate is the highest in the state at 85.24% (90.32 for males, 79.61 for females) According to the 2011 census Dehradun district has a population of 1,698,560, roughly equal to the nation of Guinea-Bissau or the US state of Idaho. This gives it a ranking of 290th in India (out of a total of 640). The district has a population density of . Its population growth rate over