Each city has a certain number of structures.

Each structure has some upgrade levels, and each upgrade costs Hammers.

Upgrading all the structures of the city gives you rewards and moves you to the next city.