In 1856 he was in command of the China station, and conducted the operations arising out of the affair of the lorcha Arrow (Second Opium War); he destroyed the Chinese fleet in June 1857, took Canton in December, and in 1858 he captured the forts on the Pei-ho, compelling the Chinese government to consent to the Treaties of Tianjin. In 1864 he was promoted to the rank of admiral.