Shanghai dialect originated from Songjiang dialect and has a history of 700 years. Shanghai's population settlement is named after Shanghai Pu. Shanghai Pu is the Huangpu River from Longhua to Waibaidu Bridge today. Shanghai dialect was formed with the emergence of Shanghai Pu and the settlement of Shanghainese. In ancient times, there was a Songjiang River (Wusong River and Suzhou River) from west to east on the delta where the Yangtze River went to sea. At the downstream of it, there were two tributaries, Shanghai Puhe Xiahaipu. The settlement corresponding to "Shanghai" was first seen in the tenth year of Xining in the Northern Song Dynasty (1077). At that time, there was a market called "Shanghai Affairs" in the northeast of Huating County, which managed the sales and collection of wine tax, and the others were in the northeast of the old city of Shanghai today. To the east is Shanghai Beach. More than 900 years ago.
Later, in the Southern Song Dynasty, Wusong River began to silte up. Qinglong Town, a big port on Wusong River, was replaced by Shanghai Affairs. The government has set up the Urban Shipping Service Bureau in Shanghai, which is responsible for collecting merchant shipping tax. At the turn of the Song and Yuan Dynasties, Shanghai has developed into a big town in the northeast of Huating County. In the 28th year of Yuan Zhizheng (129 1), when the five townships in the northeast of Huating County were Shanghai counties, the county government was located in the Shanghai office of the Song Dynasty, which formed a large-scale settlement center and formed a Shanghai dialect different from Songjiang dialect.