How did city states in Greece develop?

When Greek nomadic tribes arrived, they took over a section of land to settle on. They established a fortress on a hill (acropolis) for security, and a city grew up around it. These were independent city-states, and each had no intention of giving up that independence to combine with others whom they rivalled.