Earlier self streghtnening movement after the first opium wars, the Qing decided to westernize now, instead of the second one, bc they are hummiliated and Lin Zexu just infuleced the emperor more, to modernize as they just got their but kicked easily. And this also made the emperor that reforms are needed so they did that, invites europeans to help them westernize and modernize their country, Imports guns, machines and other stuff to industrialize, and modernize. So they did that now they just reformed the government to make it efficient and less corrupt and westernize and industrialize the country by 1900