Shanghai used to belong to Jiangsu.

About 6000 years ago, the west of Shanghai has now become a land with primitive villages, and the east has become a land in 2000. In the Spring and Autumn Period, it belonged to Dongwu territory, and in the Warring States Period it belonged to Chu State. It was once the fief of Huang Xie, the king of Chu, and the Huangpu River, which runs through modern Shanghai, is also called Spring, so Shanghai is not called Shen. During the Jin Dynasty in the 4th and 5th centuries A.D., residents in Songjiang (now Suzhou River) and coastal areas mostly made a living by fishing. They created a bamboo fishing tool called Hu, and because the river was called blasphemy at that time, the downstream area of Songjiang was called Hu, which was later changed to Shanghai. "Shanghai" is named because it is located in Shanghai Pu, a tributary of Songjiang (Wusong River). Huating County (Songjiang) was established in the middle of Tang Dynasty. At the end of Song Dynasty, Shanghai Town was established. 1292 (yuan) is located in Shanghai county. In the heyday of the Ming Dynasty, Shanghai City was built in 1553 for the Japanese invaders, belonging to Songjiang House in Nanzhili, which is the largest cotton spinning center in China. Following the Ming system in the Qing Dynasty, it belonged to Songjiang Prefecture in jiangnan province and set up Jiang Customs.

Shanghai, 1888 opened.

1933 after the first opium war in Shanghai, according to the Sino-British treaty of nanking signed by 1842, Shanghai became one of the five foreign trade ports, allowing Britain to set up concessions in Shanghai. After the opening of the port, modern Shanghai became the most prosperous port, economic and financial center in the Far East and "the only international metropolis in modern Asia". Known as the "Shiliyang Field", at that time, the four districts of Huangpu, Jing 'an, Hongkou and Yangpu in Shanghai today were mainly the Shanghai Concession (mainly Britain and the United States), Changning District was the cross-border road-building area of the Shanghai Concession, and Luwan and Xuhui District were mainly the Shanghai French Concession. At that time, the Shanghai Concession area enjoyed administrative and judicial power completely independent of the Qing government at that time. Outside the concession park, there will be a sign that says, "China people and dogs are not allowed in." The existence of the Concession made Shanghai unaffected by the war, enjoyed the actual independent status and full international ties, and brought prosperity to modern Shanghai. However, Hongkou and Yangpu District were later designated as Japanese defense zones and became the sphere of influence of the Japanese army, which suffered as much as the Chinese community during the Battle of Songhu.

In the early years of the Republic of China, Zhabei and Heather (Flower Street) outside the concession belonged to Jiangsu Province. 1927, the government of the Republic of China established the Shanghai Special City outside the concession, which was directly under the jurisdiction of the Executive Yuan of the Republic of China. At the same time, it was merged into Shanghai County, Baoshan County 17 town in Jiangsu Province. In July, 1930, it was renamed Shanghai. Japan's war of aggression against China broke out in 1937. After the Battle of Songhu, the Japanese army defeated the China army and occupied Shanghai by force (all areas except the concession). The French Concession in Shanghai and the half of the Shanghai Concession south of Suzhou River experienced more than four years of isolated island period. After the outbreak of the Pacific War, Japan declared war on Britain and the United States, and then the Japanese army invaded the concession. Shanghai was occupied by Japan until 1945 when Japan surrendered unconditionally. After World War II, Shanghai was occupied and taken over by the Republic of China according to the Cairo Declaration issued by China, the United States and Britain. From 1842 to 1945, Shanghai lost its unique position and became a part of the Republic of China. From then on to May 1949, Shanghai was taken over by the National Government.

From 65438 to 0946, a large-scale civil war broke out between the government forces of the Republic of China and the forces led by China (see China Civil War). 1949 In May, China's armed forces, the People's Liberation Army of China, defeated the National Revolutionary Army of the Republic of China and occupied Shanghai. At the same time, military control was imposed on Shanghai, and a large number of people, property and institutions were evacuated here.