However, the rise of villages and the development of organised societies in China took place comparatively late in the story, later than in the powerhouses of the western ancient world, Egypt and Mesopotamia, which thrived from the fourth millennium BCE with large-scale monumental architecture, writing and cities.