The Mahajanapadas were large territorial states that emerged in ancient India around the 6th century BCE.