The name Rajgir came from Rajagiha ‘house of the king’ or “royal house”, or the word rajgir might have its origian in its plain literal meaning, “royal mountain”. It was the ancient capital city of the Magadha kings until the 5th century BC when Ajatashatru moved the capital to Pataliputra. In those days, it was called Rajgrih, which translates as ‘the home of Royalty’.The epic Mahabharata calls it Girivraja and recount the story of its king, Jarasandha, and his battle with the Pandava brothers and their allies Krishna.It is also mentioned in Buddhist and Jain scriptures, which give a series of place-names, but without geographical context. The attempt to locate these places is based largely on reference to them and to other locations in the works of Chinese Buddhist pilgrims, particularly Faxian and Xuanzang. It is sacred to the memory of the founders of both the religions: Buddhism and Jainism and associated with both the historical Buddha and Mahavira.There are ten temples located on the hills and two are located in the valley. The first hill known as Vipulachala has four beautiful temples located on it. A huge monument has been built here in memory of Lord Munisuvrathnath. On the second hill Udaigiri there are two temples which were said to be discovered when the place was being dug up. Idols were recovered from here and have been installed in Lal Mandir situated in the valley. On the third hill Ratnagiri there are some Jain temples. On the fourth hill known as Swarnagiri or Shramangiri there are three temples. On the southern part of this hill there are two caves and images of the Tirthankars have been carved on the walls of these caves. On the fifth hill known as Vaibhavgiri there are five temples. There is a Shalibhadra temple besides the Jain temple. A 1200 year old Jain temple has been recovered here after digging 24 rooms and many ancient artistic idols are installed here. A short distance from the last hill foot images of Ganadhar Bhagavan the close disciple of Lord Mahavir can be found. The ruins of the palaces of King Bimbisara of Magadha(Known as King Shrenik in Jain texts) can also be seen.