The Mahajanapadas were sixteen kingdoms that flourished in ancient India from the 6th to 4th centuries BCE. Each Mahajanapada had a capital city.