In 1857, Lord Elgin was appointed High Commissioner and Plenipotentiary in China and the Far East to assist in the process of opening up China and Japan to Western trade. During the Second Opium War, he led the bombardment of Canton (Guangzhou) and oversaw the end of the war by signing the Treaty of Tientsin (Tianjin) on 26 June 1858.