A city-state is best defined as

an independent sovereign territory consisting of a city and its surrounding territory, often functioning like a country in terms of governance and autonomy.