The Opium War opened China up to foreign trade for the first time, but also threatened the stability of the Manchu government and made China a center for illegal activity. The conflict actually had two phases, from 1839 to 1842 and again from 1856 to 1860, pitting the Qing rule in China against the British Empire.