Rajgir is also famous for its association with Haryanka dynasty Kings Bimbisara (558–491 BC) and Ajatashatru (492–460 BC) as their capital city. Ajatashatru kept his father Bimbsara in captivity here. The sources do not agree which of the Buddha’s royal contemporaries, Bimbisara and Ajatashatru, was responsible for its construction. Ajatashatru is also credited with moving the capital to Pataliputra (modern Patna).
The name Rajgir came from Rājagṛiha, meaning “house of the king” or “royal house”, or the word Rajgir might have its origin in its plain literal meaning, “royal mountain”. It was the ancient capital city of the Magadha kings until the 5th century BC when Udayin(460–440 BC), son of Ajatshatru, moved the capital to Pataliputra. In those days, it was called Rajgriha, which translates as ‘the home of Royalty’.
Shishunaga (413-395 BC) founded Shishunaga dynasty in 413 BCE with Rajgir as its initial capital before it was moved to Pataliputra.
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. Jarasandha who hailed from this place, had been defeated by Krishna 17 times. The 18th time Krishna left the battlefield without fighting. Because of this Krishna is also called ‘ranachorh’ (one who has left the battlefield). Mahabharata recounts a wrestling match between Bhima (one of the Pandavas) and Jarasandha, the then king of Magadha. Jarasandha was invincible as his body could rejoin any dismembered limbs. According to the legend, Bhim split Jarasandha into two and threw the two halves facing opposite to each other so that they could not join. There is a famous Jarasandha’s Akhara (place where martial arts are practiced).