China's First Railways: How the Iron Horse Arrived — and Was Resisted — in the 19th Century
Today China runs the largest high-speed rail network on Earth — more than 40,000 kilometers of track where trains glide at 350 km/h between cities that once took weeks to cross. It is easy to assume the railway was always welcome here, that China embraced the iron horse the way it now embraces the bullet train. The truth is the opposite, and the beginning was almost comically short-lived.
The first railway in China opened near Shanghai in 1876 and was torn up, rail by tie, less than a year later. The country that would one day become the global capital of rail travel reacted to its first train with fear, outrage, and a buyout that ended in demolition. This is the story of that first line, and of why the resistance mattered.
The Wusong railway of 1876
In the early 1870s, a British-owned company called the Shanghai and Wusong Railway — backed by merchants with links to the foreign settlements — built a narrow-gauge line running from Shanghai outward toward Wusong, a town near the mouth of the Yangtze. The project was controversial from the start. Foreign concessions in Shanghai operated under a legal gray zone, and the company proceeded without clear permission from the Qing authorities, who had not authorized a railway through Chinese territory.
When the line opened in 1876, it was a sensation and a scandal at once. Locals came to stare at the smoking locomotive. For a small fare, a Chinese passenger could ride a few miles faster than a horse could manage. But the Qing court and local officials viewed the whole thing as an illegal intrusion — a foreign power laying steel through the countryside without consent, disturbing graves, farms, and the geomantic order of the land.
Why it was bought and destroyed
The trigger is usually told through a single tragic incident: a Chinese man was struck and killed by the train. Whether or not that was the decisive moment, it gave the opposition its moral weight. Pressure from Qing officials mounted, and the foreign company, unable to operate legally and unwilling to provoke a larger crisis, agreed to sell the line to the Chinese government.
The price was paid. And then, instead of running it, the Qing authorities dismantled it. The rails were pulled up, the locomotives were shipped away, and the line ceased to exist. In the official mind of the late 1870s, a railway was not progress — it was a foreign wound cut into Chinese soil, and the correct response was to erase it.
This was not stupidity, as later textbooks sometimes implied. It was a collision of worldviews. The railway represented foreign penetration, the disruption of rural life, and a technology whose logic the court did not yet control. Rejecting it was, in that moment, an assertion of sovereignty as much as a miscalculation.
The deeper suspicion
The Wusong episode fit a broader Qing anxiety. Railways needed land, and land in China meant ancestors' graves, villages, and the fragile relationship between peasant and soil. They needed foreign engineers and foreign capital. They threatened the old transport economy — the boatmen, the carters, the canal system that had moved the empire's grain for centuries. Every one of those interests had a reason to fear the train.
There was also a strategic fear: a railway was a weapon. A line built by foreigners could move foreign troops as easily as foreign goods. In an era of unequal treaties and gunboat diplomacy, that was not paranoia. It was recent memory.
The slow turn: imperial railways and Zhan Tianyou
It took years for the logic to flip. By the late 19th century, as foreign powers pushed rail concessions across China — sometimes literally carving lines through the country as spheres of influence — the Qing court realized that refusing railways entirely meant letting others build them on their own terms. Better to build Chinese railways than to host foreign ones.
The symbolic turning point came with Zhan Tianyou, often called the father of Chinese railways. Trained in the United States, he engineered the Beijing–Zhangjiakou line, completed in 1909, using ingenuity that became national legend — most famously his switchback zigzag solution to climb the steep Badaling pass near the Great Wall without foreign help. It was the first major railway designed and built by Chinese engineers, and it mattered as much as a statement of capability as a piece of infrastructure.
From resistance to the world's biggest network
The arc from 1876 to today is one of the great reversals in modern history. The empire that tore up its first train built, under the Republic and then the PRC, an ever-denser web of lines. The reform era of the 1990s and 2000s turned rail into a national priority, and the high-speed boom of the 2010s made China the undisputed center of the technology. The same state that once saw the locomotive as a foreign threat now showcases the bullet train as proof of Chinese strength.
What the Wusong story leaves behind is a reminder that infrastructure is never just infrastructure. The first railway failed not because the technology was weak but because the context was not ready — legally, politically, culturally. When the context changed, the same nation that rejected the train became the one that outbuilt everyone.
FAQ
Q: When was China's very first railway built? A: The first line, the Wusong railway near Shanghai, opened in 1876 and was dismantled in 1877 after the Qing government bought and removed it.
Q: Why did China reject its first train? A: A mix of reasons: it was built without Qing authorization, it disturbed land and graves, it threatened traditional transport livelihoods, and it was seen as a foreign intrusion during the unequal-treaty era.
Q: Who was Zhan Tianyou? A: A Chinese-born engineer trained in the United States, he built the Beijing–Zhangjiakou railway (1909), the first major line designed and constructed by Chinese engineers, using a famous switchback to climb near the Great Wall.
Q: Did any railways survive the 19th century in China? A: Lines built by foreign interests in concession areas and for strategic purposes did appear later in the century, but the first Chinese-run effort ended almost immediately with the Wusong dismantling.
Q: How does this connect to China's high-speed rail today? A: The early resistance reflects how foreign the technology once felt; the later embrace shows how completely that view reversed, turning rail into a core symbol of modern Chinese capability.
Conclusion
The story of China's first railway is a small, strange episode that says something large: technology arrives inside history, not above it. In 1876 the train was a foreign wound, and Shanghai dug it up. A generation later the same country decided the railway was survival, and a Chinese engineer proved it could be built without foreign hands. The bullet trains gliding past Badaling today run on the far side of that reversal — a reminder that what a nation rejects in one century it may come to lead the next.