claustrophobia (n.)youdaoicibaDictYouDict
"morbid fear of being shut up in a confined space," coined 1879 (in article by Italian-born, French-naturalized Swiss-English physician Dr. Benjamin Ball (1834-1892)) from Latin claustrum "a bolt, a means of closing; a place shut in, confined place, frontier fortress" (in Medieval Latin "cloister"), past participle of claudere "to close" (see close (v.)) + -phobia "fear."
cloister (n.)youdaoicibaDictYouDict
early 13c., from Old French cloistre "monastery, convent; enclosure" (12c., Modern French cloître), from Medieval Latin claustrum "portion of monastery closed off to laity," from Latin claustrum (usually in plural, claustra) "place shut in, enclosure; bar, bolt, means of shutting in," from past participle stem of claudere (see close (v.)).

"The original purpose of cloisters was to afford a place in which the monks could take exercise and recreation" [Century Dictionary]. Spelling in French influenced by cloison "partition." Old English had clustor, clauster in the sense "prison, lock, barrier," directly from Latin, and compare, from the same source, Dutch klooster, German Kloster, Polish klasztor.
close (v.)youdaoicibaDictYouDict
c. 1200, "to shut, cover in," from Old French clos- (past participle stem of clore "to shut, to cut off from"), 12c., from Latin clausus, past participle of claudere "to shut, close; to block up, make inaccessible; put an end to; shut in, enclose, confine" (always -clusus, -cludere in compounds).

The Latin word might be from the possible PIE root *klau- "hook, peg, crooked or forked branch" (used as a bar or bolt in primitive structures); cognates: Latin clavis "key," clavus "nail," claustrum "bar, bolt, barrier," claustra "dam, wall, barricade, stronghold;" Greek kleidos (genitive) "bar, bolt, key," klobos "cage;" Old Irish clo "nail," Middle Irish clithar "hedge, fence;" Old Church Slavonic ključi "hook, key," ključiti "shut;" Lithuanian kliuti "to catch, be caught on," kliaudziu "check, hinder," kliuvu "clasp, hang;" Old High German sliozan "shut," German schließen "to shut," Schlüssel "key."

Also partly from Old English beclysan "close in, shut up." Intransitive sense "become shut" is from late 14c. Meaning "draw near to" is from 1520s. Intransitive meaning "draw together, come together" is from 1550s, hence the idea in military verbal phrase close ranks (mid-17c.), later with figurative extensions. Meaning "bring to an end, finish" is from c. 1400; intransitive sense "come to an end" is from 1826. Of stock prices, from 1860. Meaning "bring together the parts of" (a book, etc.) is from 1560s. Related: Closed; closing.
enclave (n.)youdaoicibaDictYouDict
"small portion of one country which is entirely surrounded by the territory of another," 1868, from French enclave, from Old French enclaver "enclose, comprise, include" (13c.), from Late Latin inclavare "shut in, lock up," from Latin in- "in" (see in- (2)) + clavis "key" (see slot (n.2)). Enclaved "surrounded by land owned by another" is attested in English from mid-15c., from Old French enclaver.
hem (v.)youdaoicibaDictYouDict
late 14c., "to provide (something) with a border or fringe" (surname Hemmer attested from c. 1300), from hem (n.). Related: Hemmed; hemming. The phrase hem in "shut in, confine," first recorded 1530s.
include (v.)youdaoicibaDictYouDict
c. 1400, from Latin includere "to shut in, enclose, imprison, insert," from in- "in" (see in- (2)) + claudere "to shut" (see close (v.)). The alleged Sam Goldwyn-ism, "Include me out," is attested from 1937. Related: Included; including.
surround (v.)youdaoicibaDictYouDict
early 15c., "to flood, overflow," from Anglo-French surounder, Middle French soronder "to overflow, abound; surpass, dominate," from Late Latin superundare "overflow," from Latin super "over" (see super-) + undare "to flow in waves," from unda "wave" (see water (n.1); and compare abound). Sense of "to shut in on all sides" first recorded 1610s, influenced by figurative meaning in French of "dominate," and by sound association with round, which also influenced the spelling of the English word from 17c. Related: Surrounded; surrounding.