Why did merchants create trade agreements?

to enable new products to be invented
to require trade with Muslim countries only.
to help trade take place peacefully between regions
to allow schools and mosques to be built in new areas

The main reason why merchants created trade agreements was to help trade take place peacefully between regions. Trade agreements were established to establish rules, regulations, and terms for commercial interactions between merchants from different regions or countries. These agreements aimed to ensure fair trade, protect merchants' interests, resolve disputes, and promote a peaceful and secure trading environment. The other options mentioned, such as enabling new products to be invented, requiring trade with Muslim countries only, and building schools and mosques in new areas, may have been secondary or unrelated objectives for some merchants or specific trade agreements, but they do not encompass the primary purpose of creating trade agreements.