It was fought between China and the British Empire, particularly the British East India Company. The war was originated due to the dispute between the British merchants for the right of selling opium in China, which was banned by the Qing dynasty. This conflict led to military confrontations that resulted in the defeat of the Chinese forces and signing of the Treaty of Nanjing in 1842.