The grammatical meaning of the enclave refers to the portion of the territory which is surrounded by a large territory. The enclave in a city refers to the enclosed area of a territory which has people of a particular cultural and societal status.
There are few cities which are also considered as enclaves like San Marino or the Vatican city-state which are surrounded by the territory of Italy.