What happened
War broke out between Britain and Qing China in 1839 and lasted until 1842. British naval and artillery superiority decided the fighting.
Background
The trigger was the Qing crackdown on the illegal British opium trade: in 1839 commissioner Lin Zexu confiscated and destroyed about 20,000 chests of opium at Humen.
Consequences
The Treaty of Nanking (August 1842) ceded Hong Kong Island to Britain, opened five ports — Guangzhou, Xiamen, Fuzhou, Ningbo, and Shanghai — to British trade, and imposed an indemnity; supplementary treaties added extraterritoriality. It was the first of the “unequal treaties”, the start of what Chinese historiography calls the century of humiliation, and the opening wedge for foreign privileges in China.