Rajgir was the first capital of the ancient kingdom of Magadha, a state that would eventually evolve into the Mauryan Empire. It finds mention in India's renowned literary epic, the Mahabharata, through its king Jarasandha.