The word "enclave" entered English in 1868 from French enclave, derived from Old French enclaver (to enclose, to lock in), from Vulgar Latin *inclavare (to lock in with a key), from Latin in- (in) and clavis (key). An enclave is, at its most literal, a territory that has been locked inside another — sealed in with a key, as if behind a locked door. The antonym "exclave" (a territory separated from the main body of its state) was formed by analogy, replacing the in- prefix with ex- (out).
Latin clavis (key) descended from the PIE root *kleh₂u- (a hook, a peg, a closure device) and generated a compact but important English word family. "Clef" (the key-shaped symbol in musical notation) came through French. "Clavicle" (the collarbone) was named for its resemblance to a small key or the bar used to lock a door. "Conclave" literally means "with a key" — a locked room
Geopolitical enclaves present fascinating administrative challenges. The Vatican City (0.44 sq km, surrounded by Rome), San Marino (61 sq km, surrounded by Italy), and Lesotho (30,355 sq km, surrounded by South Africa) are all sovereign enclaves — independent nations entirely enclosed within another country's borders. These arrangements typically result from historical accidents: a tiny territory maintained its independence while surrounding regions unified into larger states.
The most baroque enclave situation in world history existed along the India-Bangladesh border until 2015. Through historical quirks dating to the Mughal era, the border region contained Indian enclaves inside Bangladesh and Bangladeshi enclaves inside India. More astonishingly, it contained counter-enclaves (enclaves within enclaves) and even a counter-counter-enclave: Dahala Khagrabari, a piece of India inside a piece of Bangladesh inside a piece of India inside Bangladesh. The 2015 Land Boundary Agreement
In sociological usage, "enclave" describes any distinct community enclosed within a larger population: ethnic enclaves, linguistic enclaves, religious enclaves. This figurative extension preserves the spatial metaphor of enclosure while dropping the political sovereignty dimension. Little Italy, Chinatown, and similar urban neighbourhoods are sociological enclaves — communities whose cultural distinctness creates a boundary as real, in social terms, as any political border.