A city is a place where many people live together.
A city has many
There is no rule that is used all over the world to decide why some places are called "city" and other places are called "town".
Some things that make a city are:
In American English, people often call all places where many people live cities. (See below: Size of cities)