Magadha was an ancient Indian kingdom according to Vedic and post-Vedic texts such as the Epics, particularly the Mahabharata.
Jarasandha had friendly relations with Chedi king Shishupala, Kuru king Duryodhana and Anga king Karna. In the Indian Epics, Magadha is states to be a kingdom with the capital Pataliputra (near modern Patna), a city on the banks of the river Ganges.