The first civilizations developed along major river valleys, including Mesopotamia between the Tigris and Euphrates Rivers. In Mesopotamia, independent city-states emerged around 3000 BC practicing irrigation-based agriculture. These city-states developed systems of governance ruled by monarchs with the help of priests, scribes, and armies. They established some of humanity's earliest social hierarchies, legal codes, and written languages.