The Municipal Shipping Department was established in the Song, Yuan and Ming Dynasties in China to manage foreign trade at sea, which is equivalent to the current customs. It is an ancient organization for managing foreign trade in China. Responsible for foreign (maritime) trade. When the Tang Dynasty opened to the outside world, foreign businessmen came to trade in goods, and cities such as Guangzhou became important trading ports. The state has set up a municipal shipping department here, either as a special mission or by our local envoy. It began in the Tang Dynasty, flourished in the Song Dynasty, and gradually shrank in the late Ming Dynasty. In the Qing dynasty, the customs was set up and the municipal shipping department was abolished. His job is to check the goods entering and leaving the ship, collect, extract and trade.