In 1839, the emperor sent one of China’s most distinguished officials, Lin Zexu, to the trading settlement of Canton to stamp out the opium trade. Lin blockaded the European trading district, raided and searched the foreigners’ warehouses, confiscated 20,000 chests containing 1200 tons of opium, and dumped it all into the ocean.
Lin Zexu actually went and challenged the opium trade, and the British punished China greatly, as shown in the next paragraph.