for a long time the British wants to sell their products to China, however, the Qing dynasty(a corrupt governments built by Machu) which then was ruling China was implementing a close-door policy... and was benefitting from a long-time favorable trade balance with the western world, especially their most powerful representative --- the British!
And after the failure of their multi-times attempts in reversing the situation, the despicable British then came up with an evil idea
So, collaborated with the corrupt scumbag officials of the Qing government like Charles Elliott, they started smuggling Opium into China...
a hit to reach the goal of both making money(huge amount of money) and destorying the Chinese as a nation.
some visionary Chinese such as Zexu Lin rose up to fight it, and then as a prelude, there started the history of war for the Chinese to fight for freedom and up against colonialism/invasion which had continued for more than a century...
and ended by the establish of the new China, the People's Republic of China, in the year of 1949.