Human habitation was probably present in and around Delhi during the second millennium BC and before,[10] and continuous inhabitation has been evidenced since at least the 6th century BC.[9] The city is believed to be the site of Indraprastha, legendary capital of the Pandavas in the Indian epic Mahabharata.[11] Settlements grew from the time of the Mauryan Empire (c. 300 BCE).[10] Remains of seven major cities have been discovered in Delhi. Anang Pal of the Tomara dynasty founded the city of Lal Kot in AD 736. The Chauhans conquered Lal Kot in 1180 and renamed it Qila Rai Pithora. The Chauhan king Prithviraj III was defeated in 1192 by the invader Muhammad Ghori.[11]