 In 1840, during the First Opium War, the Daoguang Emperor ordered Qishan to replace Lin Zexu as the acting Viceroy of Liangguang (covering Guangdong and Guangxi provinces).Qishan was also tasked with negotiating for peace with the British.Upon witnessing British naval power, he ordered his troops to evacuate from the artillery batteries, and sent Bao Peng () to meet the British at Chuanbi (穿鼻; present-day Humen, Guangdong Province) and call for a peace settlement.