It was the guilds.
Hope this helps! :)
The trade in medieval cities and towns was primarily organized by guilds, which were associations of craftsmen and merchants. Guilds set rules and standards for trades, ensuring fair practices and quality of goods. Other groups like clergy, knights, and journeymen did not have a significant role in organizing trade.
;