The other legend draws on the Hindu epic Ramayana in which Lord Rama and his brother, Lakshmana, searched for Sita in the vicinity of the ancient capital of Kishkindha and met Hanuman on Rishyamuka Hill. Sugreeva, the monkey king in exile, and Rama made a covenant to mutually help each other find Sita and get rid of the evil King Vali. This agreement is celebrated by the presence of a temple in which are icons of Lord Rama, Lakshmana and Sugreeva. Hanuman, the devout follower of Rama, is said to have been born on Anjenadri Hill near the Tungabhadra river facing Hampi. Hence his name is Anjaneya. Archaeology traces the history of Hampi to neolithic settlements while inscriptional evidence confirms that in more recent times the area came under the rule of the Chalukyas, Rashtrakutas, Hoysalas and finally the tiny kingdom of Kampili.