Answer:
D. To reduce the threat of attacks
Step-by-step explanation:
The Hanseatic League protected merchants and traders so merchants wouldn't get attacked. Merchants and artisans formed guilds to protect their members from competition. The merchant guild prevented outsiders from doing business in towns. It was established by merchants in Germany to protect the guilds' economic interests and the trade routes which the merchants used.