Opium War ended with Great Britain winning the war and China’s humiliating defeat; the Treaty of Nanjing was signed to open up 5 cities–Canton, Fuzhou, Xiamen, Ningbo, and Shanghai–to residency by British subjects for the purpose of trade.