Irrigation meant more coordination since water was a shared resource. As settlements grew in complexity and density, city-states blended together. This first happened in the Nile delta in Egypt.
A visual chronology of Asimov's ~1500 scientific inventions and discoveries.