 During the Ming dynasty, what is now the city of Shanghai was a part of Jiangsu Province (with a small part in Zhejiang Province).While Shanghai had become a county seat in the Yuan dynasty, it remained relatively a small town.Its location at the mouth of the Yangtze River led to its development as coastal trade increased during the reign of the Qianlong Emperor in the Qing dynasty.