city (n.)youdaoicibaDictYouDict
early 13c., in medieval usage a cathedral town, but originally "any settlement," regardless of size (distinction from town is 14c., though in English it always seems to have ranked above borough), from Old French cite "town, city" (10c., Modern French cité), from earlier citet, from Latin civitatem (nominative civitas; in Late Latin sometimes citatem) originally "citizenship, condition or rights of a citizen, membership in the community," later "community of citizens, state, commonwealth" (used, for instance of the Gaulish tribes), from civis "townsman," from PIE root *kei- "to lie; bed, couch; homestead; beloved, dear" (see cemetery).

The sense has been transferred from the inhabitants to the place. The Latin word for "city" was urbs, but a resident was civis. Civitas seems to have replaced urbs as Rome (the ultimate urbs) lost its prestige. Loss of Latin -v- is regular in French in some situations (compare alleger from alleviare; neige from nivea; jeune from juvenis. A different sound evolution from the Latin word yielded Italian citta, Catalan ciutat, Spanish ciudad, Portuguese cidade.

Replaced Old English burh (see borough). London is the city from 1550s. As an adjective from c. 1300. City hall first recorded 1670s to fight city hall is 1913, American English; city slicker first recorded 1916 (see slick); both American English. City limits is from 1825. The newspaper city desk attested from 1878. Inner city first attested 1968. City state (also city-state) is attested from 1877.
guild (n.)youdaoicibaDictYouDict
also gild, early 13c., yilde (spelling later influenced by Old Norse gildi "guild, brotherhood"), a semantic fusion of Old English gegield "guild, brotherhood," and gield "service, offering; payment, tribute; compensation," from Proto-Germanic *geldjam "payment, contribution" (cognates: Old Frisian geld "money," Old Saxon geld "payment, sacrifice, reward," Old High German gelt "payment, tribute;" see yield (v.)).

The connecting sense is of a contribution or payment to join a protective or trade society. But some look to the alternative prehistoric sense of "sacrifice," as if in worship, and see the word as meaning a combination for religious purposes, either Christian or pagan. The Anglo-Saxon guilds had a strong religious component; they were burial societies that paid for Masses for the souls of deceased members as well as paying fines in cases of justified crime. Continental guilds of merchants, incorporated in each town or city and holding exclusive rights of doing business there, arrived after the Conquest. In many cases they became the governing body of a town (compare Guildhall, which came to be the London city hall). Trade guilds arose 14c., as craftsmen united to protect their common interest.