Borders of Time

China

Who ruled Shanghai?

Shanghai dates from about 1291 CE. On our historical maps, the ground it stands on has been drawn inside 18 different states, empires and peoples. Read the history of China.

xiquinhosilva · CC BY 2.0 · Wikimedia Commons
Huangpu Park 20124-Shanghai

Huangpu Park 20124-Shanghai

xiquinhosilva · CC BY 2.0 · Wikimedia Commons

The history of Shanghai

Hear the whole article read aloud
Shanghai - Yu Garden - 0035
Stefan Fussan · CC BY-SA 3.0 · Wikimedia Commons
Shanghai - Yu Garden - 0035

Shanghai - Yu Garden - 0035

Stefan Fussan · CC BY-SA 3.0 · Wikimedia Commons

Shanghai lies on the Huangpu River close to where it meets the estuary of the Yangtze, on flat alluvial land that the river has built up out of the sea over the last few thousand years. Its position at the mouth of China's greatest waterway, which links the coast to the populous interior, explains almost everything about it. For most of its history it was a modest county town; it became a world city only after 1843, when it was opened to foreign trade by treaty, and its story since then has tracked the upheavals of modern China.

Neolithic farming cultures lived on the higher ground to the west of today's centre, but much of the present city was still marsh or open water in ancient times. The area belonged successively to the states of Wu, Yue and Chu, then to the unified empires from the Han dynasty onward. Its trade at first went through Qinglong, a port on the Wusong River that flourished under the Tang and Song. As the river silted, commerce shifted to the Huangpu, and a market town called Shanghai, roughly "on the sea", grew on its bank. It became the seat of a new county in the early 1290s under the Yuan dynasty.

Under the Ming and Qing the county prospered on cotton growing and weaving and on coastal shipping. Raids by the pirates known as wokou led to the building of a city wall in 1553, which survived until 1912. By the eighteenth century the town had spread beyond its walls towards the river, with wharves, guild halls and a customs office.

The treaty port

2024-Apr Shanghai East Nanjing Road morning 01
Chainwit. · CC BY 4.0 · Wikimedia Commons
2024-Apr Shanghai East Nanjing Road morning 01

2024-Apr Shanghai East Nanjing Road morning 01

Chainwit. · CC BY 4.0 · Wikimedia Commons

The First Opium War ended with the Treaty of Nanking in 1842, which made Shanghai one of five ports opened to British trade. A British settlement was marked out north of the walled city in 1845, and a French concession followed in 1849. In 1863 the British and American areas merged into the International Settlement, run by a council of foreign ratepayers rather than by Chinese officials. Refugees fleeing the Taiping Rebellion poured in during the 1850s and 1860s, establishing the pattern of a city where Chinese residents greatly outnumbered foreigners even inside the concessions.

By the 1920s Shanghai was China's largest city and its industrial, financial and publishing capital, with banks along the waterfront Bund, cotton mills, gangsters, film studios and radical politics. The Chinese Communist Party held its first congress here in 1921, and in April 1927 Chiang Kai-shek's Nationalists massacred communists and labour activists in the city. Japanese forces attacked in 1932, and in 1937 a three-month battle ended with the Chinese parts of the city occupied. The foreign settlements survived as an island until December 1941, sheltering among others some 20,000 Jewish refugees from Europe, before Japan took them over too.

Under the People's Republic

上海展览中心·上海
Legolas1024 · CC BY-SA 4.0 · Wikimedia Commons
上海展览中心·上海

上海展览中心·上海

Legolas1024 · CC BY-SA 4.0 · Wikimedia Commons

The People's Liberation Army entered Shanghai in May 1949, and most foreign businesses and many wealthy Chinese left soon afterwards. For three decades the city was run as an industrial powerhouse whose revenues largely went to Beijing, and it was a stronghold of radical politics during the Cultural Revolution. Change came after 1990, when the government launched the development of Pudong, the farmland across the Huangpu, which became a district of skyscrapers and the site of a stock exchange. Today Shanghai is a municipality of some 25 million people, one of the largest cities in China and the world, and its leading centre of finance and container shipping.

In pictures

2 images · scroll →
Old City of Shanghai, China (December 2015) - 13
Another Believer · CC BY-SA 4.0 · Wikimedia Commons
Old City of Shanghai, China (December 2015) - 13

Old City of Shanghai, China (December 2015) - 13

Another Believer · CC BY-SA 4.0 · Wikimedia Commons
Shanghai
Stefan Wagener · CC BY 2.0 · Wikimedia Commons
Shanghai

Shanghai

Stefan Wagener · CC BY 2.0 · Wikimedia Commons

Timeline

21 periods
  1. 123,000 BCE – 10,000 BCEHomo erectusMap of 123,000 BCE →
  2. 10,000 BCE – 2000 BCENo state drawn here on the mapMap of 10,000 BCE →
  3. 2000 BCE – 1500 BCEThaiMap of 2000 BCE →
  4. 1500 BCE – 500 BCEWuMap of 1500 BCE →
  5. 500 BCE – 200 BCEZhou statesMap of 500 BCE →
  6. 200 BCE – 1 BCEHan EmpireMap of 200 BCE →
  7. 1 BCE – 300 CEHanMap of 1 BCE →
  8. 300 CE – 500 CEJinMap of 300 CE →
  9. 500 CE – 600 CEJin EmpireMap of 500 CE →
  10. 600 CE – 700 CESui EmpireMap of 600 CE →
  11. 700 CE – 1000 CETang EmpireMap of 700 CE →
  12. 1000 CE – 1279 CESong EmpireMap of 1000 CE →
  13. 1279 CE – 1400 CEGreat Khanateunder Mongol EmpireMap of 1279 CE →
  14. 1400 CE – 1500 CEMing EmpireMap of 1400 CE →
  15. 1500 CE – 1650 CEMing Chinese EmpireMap of 1500 CE →
  16. 1650 CE – 1914 CEQing EmpireMap of 1650 CE →
  17. 1914 CE – 1920 CERepublic of ChinaMap of 1914 CE →
  18. 1920 CE – 1938 CEChinese WarlordsMap of 1920 CE →
  19. 1938 CE – 1945 CERepublic of ChinaMap of 1938 CE →
  20. 1945 CE – 1960 CEChinaMap of 1945 CE →
  21. 1960 CE – todayChinaMap of 1960 CE →

Quick answers

Who rules Shanghai today?
On the latest map, Shanghai is in China.
Who ruled Shanghai the longest?
On our maps, Han, for about 301 years (1 BCE to 300 CE).
How many times has Shanghai changed hands?
Our maps show it passing to a new ruler 13 times since 1 CE.
Who ruled Shanghai in 1 CE, 1000, 1500 and 1900?
In 1 CE: Han. In 1000: Song Empire. In 1500: Ming Chinese Empire. In 1900: Qing Empire.

Dates are the years of our map snapshots, which are decades or centuries apart, so a change shown between two years happened at some point in that gap. The borders come from the historical-basemaps project and are approximate, especially for the ancient world and for peoples without fixed frontiers.

Shanghai on this site

Events in Shanghai
Battle of Shanghai (1937)
Shanghai in the guided tours
World War II in Asia and the Pacific and Asia on the Move: From the First Settlers to Today

Visit today

See Shanghai for yourself

Walking tours, museum and monument tickets, and guided visits to the places where Shanghai's history happened.

Tours and tickets in Shanghai

On GetYourGuide. We may earn a commission if you book. See our disclosure.