This allowed full-time ruling elites and military commanders to emerge. Beginning in Mesopotamia, states produced sufficient agricultural surplus. The development of first city-states, and then empires, allowed warfare to change dramatically. The difference between prehistoric and ancient warfare is more organization oriented than technology oriented. Ancient warfare is war that was conducted from the beginning of recorded history to the end of the ancient period.