Definition.com
A Guild (n.) was born of the robber-nobility, the covered market, and the escaped serfs crowding into town — an association in self-defence that grew its own hierarchy of master and journeyman.