Marketplace provides merchants. The number of merchants = the level of marketplace (max is 20). Merchants are used to transport resources between your own villages and also with other players' villages.
After fully upgrading the marketplace, trade office is used to enhance your merchants' capacity (10% per level). Trade office needs marketplace level 20 to be built.