An 1842 agreement between China and Britain that ended the Opium War and opened several Chinese ports to British trade.