Because the spot was protected by two parallel ridges, Ajatasatru made it the capital of the north Indian empire Magadha in the 5th century BCE, naming it Rajgriha.