The Magadha formed one of the sixteen kingdoms in ancient India. The core of the kingdom was the area of Bihar south of the Ganges. Its first capital was Rajagriha (modern Rajgir) then Pataliputra (modern Patna).