The First Opium War was the war of aggression Britain waged against the Qing from 1840 to 1842 — the opening of modern Chinese history. With the Industrial Revolution complete, Britain pressed for overseas markets but ran a chronic trade deficit with China, and smuggled opium in volume — silver draining out, the people poisoned. In 1839 Daoguang sent Lin Zexu as imperial commissioner to Guangdong; Lin confiscated more than 20,000 chests of opium and destroyed them publicly on the Humen beach. Britain took the affair as its casus belli: in June 1840 the fleet blockaded the Pearl River mouth, then steamed north to take Dinghai and stand off the Dagu forts at Tianjin — the court panicked and disgraced Lin. In 1841 the British took Humen and Xiamen; in 1842 they came up the Yangtze, took Wusong and Zhenjiang in train, and stood before Nanjing. Qing arms and tactics stood far beneath the enemy; Guan Tianpei and Chen Huacheng died fighting at their posts, troops and people resisted along the route — and the defeats came all the same. In August 1842 the court signed the Treaty of Nanjing: Hong Kong ceded, Guangzhou, Xiamen, Fuzhou, Ningbo and Shanghai opened as treaty ports, an indemnity of twenty-one million silver dollars — and China slid step by step into semi-colonial, semi-feudal condition.