The Magadha was established by semi-mythical king Jarasandha, who the Puranas state was a king of the Brihadrathas dynasty and one of the descendants of King Puru. Jarasandha appears in the Mahabharatha as the "Magadhan Emperor who rules all India" and meets with an unceremonious ending. Jarasandha was the greatest among them during epic times. His capital, Rajagriha or Rajgir, is now a modern hill resort in Bihar. Jarasandha's continuous assault on the Yadava kingdom of Surasena resulted in their withdrawal from central India to western India. Jarasandha was a threat not only for the Yadavas but also for the Kurus. Pandava Bhima killed him in a mace dual aided by the intelligence of Vasudeva Krishna.