Medieval guilds were exclusive organizations that formed to protect members' economic interests and regulate their trades. Merchant guilds first appeared to safeguard merchants' goods while traveling, and later helped establish towns. Craft guilds specialized in occupations like crafts and trades, controlling entry into their industries. Guilds provided services to members such as healthcare and funerals, and influenced local governments, protecting consumers by enforcing quality standards and prices through apprenticeships, journeymen, and masters.