Following the foreign victory during the Second Opium War, the Qing retaliated by torturing and killing British envoys, this act added an additional 8.000.000 taels of silver to the war debt of the Qing dynasty to the Western powers and the Qing was forced to legalise both Christianity and opium as well as opening more of its ports to foreign traders where extrateritorial rights were granted to foreign enclaves.