The division of ancient Egypt into nomes happened before 3100 BC. These nomes began as autonomous city-states, but later began to join together. According to ancient tradition, the ruler Menes finally joined all the nomes into a single kingdom.