The Treaty of Nanking was signed in 1842, marking the end of the First Opium War between the United Kingdom and the Qing Dynasty of China. This treaty was significant as it was the first of the "unequal treaties" that favored Western powers over China. It resulted in China ceding the territory of Hong Kong to Britain and opening five ports to British trade.
Additionally, the treaty imposed a large indemnity on China and established a framework for British consular jurisdiction in these ports. The Treaty of Nanking set a precedent for future foreign intervention in China and contributed to the decline of the Qing Dynasty.