This resulted in the First Opium War (1839–42).