What was the purpose of craft guilds forming in the middle ages?
a. to wipe out the growing number of merchant guilds in European towns.
b. to address political and religious corruption.
c. to get rid of competition between artisans.
d. to provide structure and support for artisans who shared a trade.