The Capital of Magadh empire was situates at Rajgriha or Girivraja. The city was almost impregnable as it was surrounded by five hills, the openings in which were closed by stone walls on all sides.
In the Battle of Vatapi, the Pallava ruler Narsimhavarman I defeated and killed Pulakesin II and captured the Chalukyan capital, Badami in 642 AD. Thus, he assumed the title of ‘Vatapikonda’ (Conqueror of Vatapi).