You can remember the meaning of 城市 with this easy mnemonic:
I've been to city (城) after city (市) after city in Europe, and never have I seen such mesmerizing scenery!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.